Interface ConstJoltPhysicsObject

All Superinterfaces:
Comparable<ConstJoltPhysicsObject>
All Known Subinterfaces:
CharacterContactListener, ConstAaBox, ConstBody, ConstBodyCreationSettings, ConstBodyId, ConstBroadPhaseLayerInterface, ConstCharacter, ConstCharacterBase, ConstCharacterBaseSettings, ConstCharacterSettings, ConstCharacterVirtual, ConstCharacterVirtualSettings, ConstCollideShapeResult, ConstConstraint, ConstConstraintSettings, ConstContact, ConstContactManifold, ConstContactSettings, ConstConvexShapeSettings, ConstMassProperties, ConstObjectLayerPairFilter, ConstObjectVsBroadPhaseLayerFilter, ConstOrientedBox, ConstPhysicsMaterial, ConstShape, ConstSubShapeId, ConstSubShapeIdPair, ConstWheelSettings, Mat44Arg, PhysicsStepListener, RMat44Arg
All Known Implementing Classes:
AaBox, AllHitRayCastBodyCollector, Array, Body, BodyActivationListener, BodyCreationSettings, BodyFilter, BodyId, BodyIdVector, BodyInterface, BodyLockInterface, BodyLockInterfaceLocking, BodyLockInterfaceNoLock, BodyLockRead, BodyLockWrite, BodyManager, BodyManagerDrawSettings, BodyVector, BoxShape, BoxShapeSettings, BroadPhase, BroadPhaseBruteForce, BroadPhaseCastResult, BroadPhaseLayerFilter, BroadPhaseLayerInterface, BroadPhaseQuadTree, BroadPhaseQuery, CapsuleShape, CapsuleShapeSettings, CastRayCollector, CastShapeCollector, Character, CharacterBase, CharacterBaseSettings, CharacterContactSettings, CharacterRef, CharacterSettings, CharacterSettingsRef, CharacterVirtual, CharacterVirtualRef, CharacterVirtualSettings, CharacterVirtualSettingsRef, CharacterVsCharacterCollision, CharacterVsCharacterCollisionSimple, CollidePointCollector, CollidePointResult, CollideSettingsBase, CollideShapeBodyCollector, CollideShapeCollector, CollideShapeResult, CollideShapeSettings, CollisionGroup, CombineFunction, CompoundShape, CompoundShapeSettings, ConeConstraint, ConeConstraintSettings, Constraint, ConstraintRef, Constraints, ConstraintSettings, ConstraintSettingsRef, Contact, ContactList, ContactListener, ContactManifold, ContactSettings, ConvexHullShape, ConvexHullShapeSettings, ConvexShape, ConvexShapeSettings, CustomBodyActivationListener, CustomCastRayCollector, CustomCastShapeCollector, CustomCharacterContactListener, CustomCollidePointCollector, CustomCollideShapeBodyCollector, CustomCollideShapeCollector, CustomContactListener, CustomPhysicsStepListener, CustomRayCastBodyCollector, CylinderShape, CylinderShapeSettings, DebugRenderer, DebugRendererRecorder, DecoratedShape, DecoratedShapeSettings, DefaultBroadPhaseLayerFilter, DefaultObjectLayerFilter, DefaultRandomEngine, DistanceConstraint, DistanceConstraintSettings, EmptyShape, EmptyShapeSettings, ExtendedUpdateSettings, FixedConstraint, FixedConstraintSettings, GearConstraint, GearConstraintSettings, GroupFilter, GroupFilterTable, GroupFilterTableRef, HeightFieldShape, HeightFieldShapeSettings, HingeConstraint, HingeConstraintSettings, IndexedTriangle, IndexedTriangleList, IndexedTriangleNoMaterial, JobSystem, JobSystemSingleThreaded, JobSystemThreadPool, JobSystemWithBarrier, JointState, JoltPhysicsObject, MapObj2Bp, MassProperties, Mat44, MeshShape, MeshShapeSettings, MotionProperties, MotorSettings, Mt19937, MutableCompoundShape, MutableCompoundShapeSettings, NarrowPhaseQuery, NarrowPhaseStat, NonCopyable, ObjectLayerFilter, ObjectLayerPairFilter, ObjectVsBroadPhaseLayerFilter, ObjVsBpFilter, ObjVsObjFilter, OffsetCenterOfMassShape, OffsetCenterOfMassShapeSettings, Part, PhysicsMaterial, PhysicsMaterialList, PhysicsMaterialRef, PhysicsScene, PhysicsSceneRef, PhysicsSettings, PhysicsStepListenerContext, PhysicsSystem, PlaneShape, PlaneShapeSettings, PointConstraint, PointConstraintSettings, Ragdoll, RagdollRef, RagdollSettings, RagdollSettingsRef, RayCast, RayCastBodyCollector, RayCastResult, RayCastSettings, Ref, RMat44, RotatedTranslatedShape, RotatedTranslatedShapeSettings, RRayCast, RShapeCast, ScaledShape, ScaledShapeSettings, SerializableObject, Shape, ShapeCastResult, ShapeCastSettings, ShapeFilter, ShapeRef, ShapeRefC, ShapeResult, ShapeSettings, ShapeSettingsRef, SharedMutex, SharedMutexBase, SixDofConstraint, SixDofConstraintSettings, SkeletalAnimation, SkeletalAnimationRef, Skeleton, SkeletonPose, SkeletonPoseDrawSettings, SkeletonRef, SliderConstraint, SliderConstraintSettings, SpecifiedBroadPhaseLayerFilter, SpecifiedObjectLayerFilter, SphereShape, SphereShapeSettings, SpringSettings, StateRecorder, StateRecorderFilter, StateRecorderImpl, StaticCompoundShape, StaticCompoundShapeSettings, StreamIn, StreamOut, StreamOutWrapper, SubShape, SubShapeId, SubShapeIdPair, TaperedCapsuleShape, TaperedCapsuleShapeSettings, TaperedCylinderShape, TaperedCylinderShapeSettings, TempAllocator, TempAllocatorImpl, TempAllocatorMalloc, Triangle, TriangleShape, TriangleShapeSettings, TwoBodyConstraint, TwoBodyConstraintSettings, UniformIntDistribution, UniformRealDistribution, VehicleCollisionTester, VehicleCollisionTesterRay, VehicleCollisionTesterRayRef, VehicleConstraint, VehicleConstraintSettings, VehicleController, VehicleControllerSettings, VehicleControllerSettingsRef, Wheel, WheeledVehicleController, WheeledVehicleControllerRef, WheeledVehicleControllerSettings, WheelSettings, WheelSettingsWv, WheelSettingsWvRef, WheelWv

public interface ConstJoltPhysicsObject extends Comparable<ConstJoltPhysicsObject>
Read-only access to a JoltPhysicsObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Free and unassign the native object if the JVM object owns it.
    boolean
    Test whether a native object is assigned.
    boolean
    Test whether the JVM object owns (is responsible for freeing) its assigned native object.
    long
    va()
    Return the virtual address of the assigned native object, assuming one is assigned.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • close

      void close()
      Free and unassign the native object if the JVM object owns it.
    • hasAssignedNativeObject

      boolean hasAssignedNativeObject()
      Test whether a native object is assigned. Both objects are unaffected.
      Returns:
      true if one is assigned, otherwise false
    • ownsNativeObject

      boolean ownsNativeObject()
      Test whether the JVM object owns (is responsible for freeing) its assigned native object. Both objects are unaffected.
      Returns:
      true if owner, otherwise false
    • va

      long va()
      Return the virtual address of the assigned native object, assuming one is assigned. Both objects are unaffected.
      Returns:
      the virtual address (not zero)