Package com.github.stephengold.joltjni
Class VehicleCollisionTester
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.VehicleCollisionTester
- All Implemented Interfaces:
ConstJoltPhysicsObject
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
VehicleCollisionTesterCastCylinder
,VehicleCollisionTesterCastSphere
,VehicleCollisionTesterRay
Detect collisions between vehicle wheels and the environment.
-
Method Summary
Modifier and TypeMethodDescriptionint
Count the active references to the nativeVehicleCollisionTester
.void
Mark the nativeVehicleCollisionTester
as embedded.toRef()
Create a counted reference to the nativeVehicleCollisionTester
.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
getRefCount
public int getRefCount()Count the active references to the nativeVehicleCollisionTester
. The tester is unaffected.- Specified by:
getRefCount
in interfaceRefTarget
- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeVehicleCollisionTester
as embedded.- Specified by:
setEmbedded
in interfaceRefTarget
-
toRef
Create a counted reference to the nativeVehicleCollisionTester
.
-