Package com.github.stephengold.joltjni
Class WheelSettingsWv
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.WheelSettings
com.github.stephengold.joltjni.WheelSettingsWv
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstWheelSettings,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
Settings used to construct a
WheelWv. (native type: WheelSettingsWV)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the maximum torque that the hand brake can exert on the wheel.floatReturn the maximum steering angle.intCount the active references to the nativeWheelSettingsWv.voidMark the nativeWheelSettingsWvas embedded.voidsetMaxHandBrakeTorque(float torque) Alter the maximum torque that the hand brake can exert on the wheel.voidsetMaxSteerAngle(float angle) Alter the maximum steering angle.toRef()Create a counted reference to the nativeWheelSettingsWv.Methods inherited from class com.github.stephengold.joltjni.WheelSettings
getPosition, getRadius, getWidth, setPosition, setRadius, setWidthMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Constructor Details
-
WheelSettingsWv
public WheelSettingsWv()Instantiate default settings.
-
-
Method Details
-
getMaxHandBrakeTorque
public float getMaxHandBrakeTorque()Return the maximum torque that the hand brake can exert on the wheel. The settings are unaffected. (native attribute: mMaxHandBrakeTorque)- Returns:
- the maximum torque (in Newton.meters)
-
getMaxSteerAngle
public float getMaxSteerAngle()Return the maximum steering angle. The settings are unaffected. (native attribute: mMaxSteerAngle)- Returns:
- the maximum steering angle (in radians)
-
setMaxHandBrakeTorque
public void setMaxHandBrakeTorque(float torque) Alter the maximum torque that the hand brake can exert on the wheel. (native attribute: mMaxHandBrakeTorque)- Parameters:
torque- the desired torque (in Newton.meters, default=4000)
-
setMaxSteerAngle
public void setMaxSteerAngle(float angle) Alter the maximum steering angle. (native attribute: mMaxSteerAngle)- Parameters:
angle- the desired maximum steering angle (in radians, default=7*Pi/18)
-
getRefCount
public int getRefCount()Count the active references to the nativeWheelSettingsWv. The settings are unaffected.- Specified by:
getRefCountin interfaceRefTarget- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeWheelSettingsWvas embedded.- Specified by:
setEmbeddedin interfaceRefTarget
-
toRef
Create a counted reference to the nativeWheelSettingsWv.- Specified by:
toRefin interfaceRefTarget- Specified by:
toRefin classWheelSettings- Returns:
- a new JVM object with a new native object assigned
-