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
,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
getRefCount, setEmbedded
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
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
-