Interface ConstVehicleAntiRollBar
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleAntiRollBar
Read-only access to a
VehicleAntiRollBar object. (native type: const
VehicleAntiRollBar)-
Method Summary
Modifier and TypeMethodDescriptionintIdentify the left wheel of the bar.intIdentify the right wheel of the bar.floatReturn the stiffness of the bar.voidsaveBinaryState(StreamOut stream) Save the bar to the specified binary stream.Methods inherited from interface java.lang.Comparable
compareToMethods 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)
-