Interface RefTarget
- All Known Implementing Classes:
BoxShape,BoxShapeSettings,CapsuleShape,CapsuleShapeSettings,Character,CharacterSettings,CharacterVirtual,CharacterVirtualSettings,CompoundShape,CompoundShapeSettings,ConeConstraint,ConeConstraintSettings,Constraint,ConstraintSettings,ConvexHullShape,ConvexHullShapeSettings,ConvexShape,ConvexShapeSettings,CylinderShape,CylinderShapeSettings,DecoratedShape,DecoratedShapeSettings,DistanceConstraint,DistanceConstraintSettings,EmptyShape,EmptyShapeSettings,FixedConstraint,FixedConstraintSettings,GearConstraint,GearConstraintSettings,GroupFilterTable,HeightFieldShape,HeightFieldShapeSettings,HingeConstraint,HingeConstraintSettings,MeshShape,MeshShapeSettings,MutableCompoundShape,MutableCompoundShapeSettings,OffsetCenterOfMassShape,OffsetCenterOfMassShapeSettings,PhysicsMaterial,PhysicsScene,PlaneShape,PlaneShapeSettings,PointConstraint,PointConstraintSettings,Ragdoll,RagdollSettings,RotatedTranslatedShape,RotatedTranslatedShapeSettings,ScaledShape,ScaledShapeSettings,Shape,ShapeSettings,SixDofConstraint,SixDofConstraintSettings,SkeletalAnimation,Skeleton,SliderConstraint,SliderConstraintSettings,SphereShape,SphereShapeSettings,StaticCompoundShape,StaticCompoundShapeSettings,TaperedCapsuleShape,TaperedCapsuleShapeSettings,TaperedCylinderShape,TaperedCylinderShapeSettings,TriangleShape,TriangleShapeSettings,TwoBodyConstraint,TwoBodyConstraintSettings,VehicleCollisionTesterRay,VehicleConstraint,VehicleConstraintSettings,VehicleControllerSettings,WheeledVehicleController,WheeledVehicleControllerSettings,WheelSettingsWv
public interface RefTarget
Classes that implement this interface maintain a count of active references
to each instance.
-
Method Summary
Modifier and TypeMethodDescriptionintCount the active references to the target.voidMark the target as embedded.toRef()Create a counted reference to the target.
-
Method Details
-
getRefCount
int getRefCount()Count the active references to the target.- Returns:
- the count (≥0)
-
setEmbedded
void setEmbedded()Mark the target as embedded. -
toRef
JoltPhysicsObject toRef()Create a counted reference to the target.- Returns:
- a new JVM object with a new native object assigned
-