Package com.github.stephengold.joltjni
Class VehicleCollisionTesterCastCylinder
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.VehicleCollisionTester
com.github.stephengold.joltjni.VehicleCollisionTesterCastCylinder
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstVehicleCollisionTester
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
A
VehicleCollisionTester
that casts a cylindrical shape.-
Constructor Summary
ConstructorsConstructorDescriptionVehicleCollisionTesterCastCylinder
(int objectLayer) Instantiate a tester for the specified layer.VehicleCollisionTesterCastCylinder
(int objectLayer, float convexRadiusFraction) Instantiate a tester with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptiontoRef()
Create a counted reference to the nativeVehicleCollisionTesterCastCylinder
.Methods inherited from class com.github.stephengold.joltjni.VehicleCollisionTester
getObjectLayer, getRefCount, setEmbedded, setObjectLayer
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
VehicleCollisionTesterCastCylinder
public VehicleCollisionTesterCastCylinder(int objectLayer) Instantiate a tester for the specified layer.- Parameters:
objectLayer
- the index of the desired object layer for collisions (≥0)
-
VehicleCollisionTesterCastCylinder
public VehicleCollisionTesterCastCylinder(int objectLayer, float convexRadiusFraction) Instantiate a tester with the specified properties.- Parameters:
objectLayer
- the index of the desired object layer for collisions (≥0)convexRadiusFraction
- (default=0.1)
-
-
Method Details
-
toRef
Create a counted reference to the nativeVehicleCollisionTesterCastCylinder
.- Specified by:
toRef
in interfaceRefTarget
- Overrides:
toRef
in classVehicleCollisionTester
- Returns:
- a new JVM object with a new native object assigned
-