Interface ConstVehicleAntiRollBar
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleAntiRollBar
Read-only access to a
VehicleAntiRollBar
object. (native type: const
VehicleAntiRollBar)-
Method Summary
Modifier and TypeMethodDescriptionint
Identify the left wheel of the bar.int
Identify the right wheel of the bar.float
Return the stiffness of the bar.void
saveBinaryState
(StreamOut stream) Save the bar to the specified binary stream.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getLeftWheel
int getLeftWheel()Identify the left wheel of the bar. The settings are unaffected.- Returns:
- the wheel index
-
getRightWheel
int getRightWheel()Identify the right wheel of the bar. The settings are unaffected.- Returns:
- the wheel index
-
getStiffness
float getStiffness()Return the stiffness of the bar. The settings are unaffected.- Returns:
- the spring constant (in Newtons per meter) (0→disabled).
-
saveBinaryState
Save the bar to the specified binary stream. The settings are unaffected.- Parameters:
stream
- the stream to write to (not null)
-