Lexicon of type names
When reading documentation for Jolt Physics, it may help to understand the differences between Jolt-Physics names and Jolt-JNI names.
Naming conventions
Jolt JNI follows many of the naming conventions of Jolt Physics:
-
Most names are in camel case, with word boundaries indicated by an uppercase letter.
-
Names of classes start with an uppercase letter.
-
Names of constants start with "c".
-
Names of enumerated types start with "E".
-
Names of static member functions start with "s".
-
Names that end with "Arg" are "const" typedefs.
-
Names that end with "Ref" are "Ref<>" typedefs.
-
Names that end with "RefC" are "RefConst<>" typedefs.
Non-static member functions in Jolt Physics
have names that start with an uppercase letter.
The corresponding methods in Jolt JNI
have names that start with a lowercase letter.
Thus IsRigidBody()
becomes isRigidBody()
.
Attributes and member data in Jolt Physics
have names that start with "m".
In Jolt JNI, the corresponding accessor methods
have names that replace the initial "m" with "get" or "set".
Thus mShape
member data
are accessed using getShape()
and setShape()
methods.
Jolt JNI has a different notion of camel case than Jolt Physics does: abbreviations such as "AA", "COM", "DOF", "ID", "LRA", "TV", and "WV" are treated as single words. Thus:
-
AABox
becomesAaBox
-
SetPositionCOM()
becomessetPositionCom()
-
SixDOFConstraint
becomesSixDofConstraint
-
BodyID
becomesBodyId
-
ELRAType
becomesELraType
-
WheelTV
becomesWheelTv
-
WheelWV
becomesWheelWv
Furthermore, Jolt JNI imposes a couple naming conventions of its own:
-
Names that start with "Const" are (also) "const" interfaces.
-
Names that end in "Va" refer to virtual addresses.
Corresponding types
Jolt-Physics class or struct | Jolt-JNI classes and interfaces |
---|---|
AaBox ConstAaBox |
|
Body ConstBody |
|
BodyCreationSettings ConstBodyCreationSettings |
|
BodyFilter |
|
BodyInterface |
|
BodyLockInterface |
|
BodyLockInterfaceLocking |
|
BodyLockInterfaceNoLock |
|
BodyLockRead |
|
BodyLockWrite |
|
BodyManager |
|
BoxShape |
|
BoxShapeSettings |
|
BroadPhase |
|
BroadPhaseBruteForce |
|
BroadPhaseCastResult |
|
BroadPhaseLayerFilter |
|
BroadPhaseLayerInterface ConstBroadPhaseLayerInterface |
|
BroadPhaseLayerInterfaceTable |
|
BroadPhaseQuadTree |
|
BroadPhaseQuery |
|
CapsuleShape |
|
CapsuleShapeSettings |
|
Character ConstCharacter CharacterRef CharacterRefC |
|
CharacterBase ConstCharacterBase |
|
CharacterBaseSettings ConstCharacterBaseSettings |
|
CharacterContactListener |
|
CharacterContactSettings |
|
CharacterSettings ConstCharacterSettings CharacterSettingsRef |
|
CharacterVirtual ConstCharacterVirtual CharacterVirtualRef CharacterVirtualRefC |
|
CharacterVirtualSettings ConstCharacterVirtualSettings CharacterVirtualSettingsRef |
|
CharacterVsCharacterCollision |
|
CharacterVsCharacterCollisionSimple |
|
CollidePointResult |
|
CollideSettingsBase |
|
CollideShapeResult |
|
CollideShapeSettings |
|
CollisionDispatch |
|
CollisionGroup ConstCollisionGroup |
|
Color ConstColor |
|
CompoundShape |
|
CompoundShapeSettings |
|
ConeConstraint |
|
ConeConstraintSettings |
|
Constraint ConstConstraint ConstraintRef |
|
ConstraintSettings ConstConstraintSettings ConstraintSettingsRef |
|
ContactListener |
|
ContactManifold ConstContactManifold |
|
ContactSettings ConstContactSettings |
|
ConvexHullBuilder |
|
ConvexHullShape |
|
ConvexHullShapeSettings |
|
ConvexShape |
|
ConvexShapeSettings ConstConvexShapeSettings |
|
CylinderShape |
|
CylinderShapeSettings |
|
DebugRenderer |
|
DebugRendererRecorder |
|
DecoratedShape |
|
DecoratedShapeSettings |
|
DefaultBroadPhaseLayerFilter |
|
DefaultBroadPhaseLayerFilter |
|
DefaultObjectLayerFilter |
|
DistanceConstraint |
|
DistanceConstraintSettings |
|
EmptyShape |
|
EmptyShapeSettings |
|
FixedConstraint |
|
FixedConstraintSettings |
|
Float2 |
|
Float3 |
|
GearConstraint |
|
GearConstraintSettings |
|
GroupFilter ConstGroupFilter GroupFilterRef |
|
GroupFilterTable GroupFilterTableRef |
|
HeightFieldShape |
|
HeightFieldShapeSettings |
|
HingeConstraint |
|
HingeConstraintSettings |
|
IgnoreMultipleBodiesFilter |
|
IndexedTriangle |
|
IndexedTriangleNoMaterial |
|
JobSystem |
|
JobSystemSingleThreaded |
|
JobSystemThreadPool |
|
JobSystemWithBarrier |
|
Joint ConstJoint |
|
MassProperties ConstMassProperties |
|
Mat44 Mat44Arg |
|
MeshShape |
|
MeshShapeSettings |
|
MotionProperties ConstMotionProperties |
|
MotorSettings |
|
MotorcycleController |
|
MotorcycleControllerSettings |
|
MutableCompoundShape |
|
MutableCompoundShapeSettings |
|
Mutex |
|
NarrowPhaseQuery |
|
NonCopyable |
|
ObjectLayerFilter |
|
ObjectLayerPairFilter ConstObjectLayerPairFilter |
|
ObjectLayerPairFilterTable |
|
ObjectStreamIn |
|
ObjectStreamOut |
|
ObjectVsBroadPhaseLayerFilter ConstObjectVsBroadPhaseLayerFilter |
|
ObjectVsBroadPhaseLayerFilterTable |
|
OffsetCenterOfMassShape |
|
OffsetCenterOfMassShapeSettings |
|
OrientedBox ConstOrientedBox |
|
PathConstraint |
|
PathConstraintPath PathConstraintPathRef |
|
PathConstraintPathHermite |
|
PathConstraintSettings |
|
PhysicsMaterial ConstPhysicsMaterial PhysicsMaterialRef PhysicsMaterialRefC |
|
PhysicsMaterialSimple |
|
PhysicsScene PhysicsSceneRef |
|
PhysicsSettings |
|
PhysicsStepListener |
|
PhysicsStepListenerContext |
|
PhysicsSystem |
|
Plane ConstPlane |
|
PlaneShape |
|
PlaneShapeSettings |
|
PointConstraint |
|
PointConstraintSettings |
|
PulleyConstraint |
|
PulleyConstraintSettings |
|
Quat QuatArg |
|
RackAndPinionConstraint |
|
RackAndPinionConstraintSettings |
|
Ragdoll RagdollRef |
|
RagdollSettings RagdollSettingsRef |
|
RayCast |
|
RayCastResult |
|
RayCastSettings |
|
RotatedTranslatedShape |
|
RotatedTranslatedShapeSettings |
|
RRayCast |
|
RShapeCast |
|
ScaledShape |
|
ScaledShapeSettings |
|
SerializableObject |
|
Shape ConstShape ShapeRef ShapeRefC |
|
ShapeCastResult |
|
ShapeCastSettings |
|
ShapeFilter |
|
ShapeSettings ConstShapeSettings ShapeSettingsRef ShapeSettingsRefC |
|
SharedMutex |
|
SixDofConstraint |
|
SixDofConstraintSettings |
|
SkeletalAnimation SkeletalAnimationRef |
|
Skeleton ConstSkeleton SkeletonRef |
|
SkeletonMapper SkeletonMapperRef |
|
SkeletonPose |
|
SliderConstraint |
|
SliderConstraintSettings |
|
SoftBodyContactListener |
|
SoftBodyContactSettings ConstSoftBodyContactSettings |
|
SoftBodyCreationSettings ConstSoftBodyCreationSettings |
|
SoftBodyManifold |
|
SoftBodyMotionProperties ConstSoftBodyMotionProperties |
|
SoftBodyShape |
|
SoftBodySharedSettings ConstSoftBodySharedSettings SoftBodySharedSettingsRef |
|
SoftBodyVertex ConstSoftBodyVertex |
|
SpecifiedBroadPhaseLayerFilter |
|
SpecifiedObjectLayerFilter |
|
Sphere |
|
SphereShape |
|
SphereShapeSettings |
|
SpringSettings |
|
StateRecorder |
|
StateRecorderFilter |
|
StateRecorderImpl |
|
StaticCompoundShape |
|
StaticCompoundShapeSettings |
|
StreamIn |
|
StreamInWrapper |
|
StreamOut |
|
StreamOutWrapper |
|
SubShapeIdCreator |
|
SubShapeIdPair |
|
SwingTwistConstraint |
|
SwingTwistConstraintSettings |
|
TaperedCapsuleShape |
|
TaperedCapsuleShapeSettings |
|
TaperedCylinderShape |
|
TaperedCylinderShapeSettings |
|
TempAllocator |
|
TempAllocatorImpl |
|
TempAllocatorImplWithMallocFallback |
|
TempAllocatorMalloc |
|
TrackedVehicleController |
|
TrackedVehicleControllerSettings |
|
TransformedShape ConstTransformedShape |
|
Triangle |
|
TriangleShape |
|
TriangleShapeSettings |
|
TwoBodyConstraint TwoBodyConstraintRef ConstTwoBodyConstraint |
|
TwoBodyConstraintSettings TwoBodyConstraintSettingsRef |
|
UVec4 |
|
Vec3 Vec3Arg |
|
Vec4 Vec4Arg |
|
VehicleAntiRollBar |
|
VehicleCollisionTester VehicleCollisionTesterRef |
|
VehicleCollisionTesterCastCylinder VehicleCollisionTesterCastCylinderRef |
|
VehicleCollisionTesterCastSphere VehicleCollisionTesterCastSphereRef |
|
VehicleCollisionTesterRay VehicleCollisionTesterRayRef |
|
VehicleConstraint VehicleConstraintRef |
|
VehicleConstraintSettings |
|
VehicleController |
|
VehicleControllerSettings VehicleControllerSettingsRef |
|
VehicleDifferentialSettings |
|
VehicleEngine |
|
VehicleEngineSettings |
|
VehicleTrackSettings |
|
VehicleTransmission |
|
VehicleTransmissionSettings |
|
Wheel |
|
WheelSettings |
|
WheelSettingsTv WheelSettingsTvRef |
|
WheelSettingsWv WheelSettingsWvRef |
|
WheelTv |
|
WheelWv |
|
WheeledVehicleController |
|
WheeledVehicleControllerSettings |