Interface ConstWheelSettings
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
WheelSettings,WheelSettingsWv
Read-only access to
WheelSettings. (native type: const WheelSettings)-
Method Summary
Modifier and TypeMethodDescriptionCopy the location of the attachment point.floatReturn the radius of the wheel.floatgetWidth()Return the width of the wheel.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
getPosition
Vec3 getPosition()Copy the location of the attachment point. The settings are unaffected.- Returns:
- a new location vector (in the body's local system)
-
getRadius
float getRadius()Return the radius of the wheel. The settings are unaffected.- Returns:
- the radius (in maters)
-
getWidth
float getWidth()Return the width of the wheel. The settings are unaffected.- Returns:
- the width (in maters)
-