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<JoltPhysicsObject>
Settings used to construct a
WheelWv
. (native type: WheelSettingsWV)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the maximum torque that the main brake can exert on the wheel.float
Return the maximum torque that the hand brake can exert on the wheel.float
Return the maximum steering angle.int
Count the active references to the nativeWheelSettingsWv
.void
Mark the nativeWheelSettingsWv
as embedded.void
setMaxBrakeTorque
(float torque) Alter the maximum torque that the main brake can exert on the wheel.void
setMaxHandBrakeTorque
(float torque) Alter the maximum torque that the hand brake can exert on the wheel.void
setMaxSteerAngle
(float angle) Alter the maximum steering angle.toRef()
Create a counted reference to the nativeWheelSettingsWv
.Methods inherited from class com.github.stephengold.joltjni.WheelSettings
getEnableSuspensionForcePoint, getPosition, getRadius, getSteeringAxis, getSuspensionDirection, getSuspensionForcePoint, getSuspensionMaxLength, getSuspensionMinLength, getSuspensionPreloadLength, getSuspensionSpring, getWheelForward, getWheelUp, getWidth, setEnableSuspensionForcePoint, setPosition, setRadius, setSteeringAxis, setSuspensionDirection, setSuspensionForcePoint, setSuspensionMaxLength, setSuspensionMinLength, setSuspensionPreloadLength, setWheelForward, setWheelUp, setWidth
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
WheelSettingsWv
public WheelSettingsWv()Instantiate default settings.
-
-
Method Details
-
getMaxBrakeTorque
public float getMaxBrakeTorque()Return the maximum torque that the main brake can exert on the wheel. The settings are unaffected. (native attribute: mMaxBrakeTorque)- Returns:
- the maximum torque (in Newton.meters)
-
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)
-
setMaxBrakeTorque
public void setMaxBrakeTorque(float torque) Alter the maximum torque that the main brake can exert on the wheel. (native attribute: mMaxBrakeTorque)- Parameters:
torque
- the desired torque (in Newton.meters, default=1500)
-
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:
getRefCount
in interfaceRefTarget
- Specified by:
getRefCount
in classWheelSettings
- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeWheelSettingsWv
as embedded.- Specified by:
setEmbedded
in interfaceRefTarget
- Specified by:
setEmbedded
in classWheelSettings
-
toRef
Create a counted reference to the nativeWheelSettingsWv
.- Specified by:
toRef
in interfaceRefTarget
- Specified by:
toRef
in classWheelSettings
- Returns:
- a new JVM object with a new native object assigned
-