Package com.github.stephengold.joltjni
Class VehicleCollisionTesterCastSphere
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.VehicleCollisionTester
com.github.stephengold.joltjni.VehicleCollisionTesterCastSphere
- All Implemented Interfaces:
ConstJoltPhysicsObject
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
A
VehicleCollisionTester
that casts a spherical shape.-
Constructor Summary
ConstructorsConstructorDescriptionVehicleCollisionTesterCastSphere
(int objectLayer, float radius) Instantiate a tester with the specified properties.VehicleCollisionTesterCastSphere
(int objectLayer, float radius, Vec3Arg up) Instantiate a tester with the specified properties.VehicleCollisionTesterCastSphere
(int objectLayer, float radius, Vec3Arg up, float maxSlopeAngle) Instantiate a tester with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptiontoRef()
Create a counted reference to the nativeVehicleCollisionTesterCastSphere
.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
-
VehicleCollisionTesterCastSphere
public VehicleCollisionTesterCastSphere(int objectLayer, float radius) Instantiate a tester with the specified properties.- Parameters:
objectLayer
- the index of the desired object layer for collisions (≥0)radius
- the desired radius
-
VehicleCollisionTesterCastSphere
Instantiate a tester with the specified properties.- Parameters:
objectLayer
- the index of the desired object layer for collisions (≥0)radius
- the desired radiusup
- the "up" direction (default=(0,1,0))
-
VehicleCollisionTesterCastSphere
public VehicleCollisionTesterCastSphere(int objectLayer, float radius, Vec3Arg up, float maxSlopeAngle) Instantiate a tester with the specified properties.- Parameters:
objectLayer
- the index of the desired object layer for collisions (≥0)radius
- the desired radiusup
- the "up" direction (default=(0,1,0))maxSlopeAngle
- the maximum slope angle considered for colliding wheels (in radians, default=4*pi/9)
-
-
Method Details
-
toRef
Create a counted reference to the nativeVehicleCollisionTesterCastSphere
.- Specified by:
toRef
in interfaceRefTarget
- Overrides:
toRef
in classVehicleCollisionTester
- Returns:
- a new JVM object with a new native object assigned
-