Interface ConstVehicleConstraintSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstConstraintSettings
,ConstJoltPhysicsObject
,ConstSerializableObject
- All Known Implementing Classes:
VehicleConstraintSettings
Read-only access to a
VehicleConstraintSettings
object. (native type:
const VehicleConstraintSettings)-
Method Summary
Modifier and TypeMethodDescriptiongetAntiRollBar
(int barIndex) Access the settings for the specified anti-roll bar.Access the controller settings.Copy the "forward" vector.float
Return the vehicle's maximum pitch/roll angle.int
Count the anti-roll bars.int
Count the wheels.getUp()
Copy the "up" vector.getWheel
(int wheelIndex) Access the settings of the specified wheel.Enumerate all wheel settings.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstConstraintSettings
getConstraintPriority, getControllerType, getDrawConstraintSize, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, saveBinaryState
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Method Details
-
getAntiRollBar
Access the settings for the specified anti-roll bar. The settings are unaffected.- Parameters:
barIndex
- the index of the anti-roll bar to access (≥0, <numBars)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getController
ConstVehicleControllerSettings getController()Access the controller settings. The constraint settings are unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned
-
getForward
Vec3 getForward()Copy the "forward" vector. The settings are unaffected.- Returns:
- a new direction vector
-
getMaxPitchRollAngle
float getMaxPitchRollAngle()Return the vehicle's maximum pitch/roll angle. The settings are unaffected.- Returns:
- the limit angle (in radians)
-
getNumAntiRollBars
int getNumAntiRollBars()Count the anti-roll bars. The settings are unaffected.- Returns:
- the count (≥0)
-
getNumWheels
int getNumWheels()Count the wheels. The settings are unaffected.- Returns:
- the count (≥0)
-
getUp
Vec3 getUp()Copy the "up" vector. The settings are unaffected.- Returns:
- a new direction vector
-
getWheel
Access the settings of the specified wheel.- Parameters:
wheelIndex
- which wheel (≥0, <numWheels)- Returns:
- the pre-existing object
-
getWheels
ConstWheelSettings[] getWheels()Enumerate all wheel settings. The settings are unaffected.- Returns:
- a new array of pre-existing objects
-