java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.WheelSettings
com.github.stephengold.joltjni.WheelSettingsWv
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,ConstWheelSettings,ConstWheelSettingsWv,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
Settings used to construct a
WheelWv. (native type: WheelSettingsWV)-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate default settings.WheelSettingsWv(ConstWheelSettingsWv original) Instantiate a copy of the specified settings. -
Method Summary
Modifier and TypeMethodDescriptionAccess the lateral friction as a function of the slip angle (in degrees).Access the longitudinal friction as a function of slip ratio.floatReturn the maximum torque that the main brake can exert on the wheel.floatReturn 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.voidCopy the specified curve to the lateral-friction curve.voidCopy the specified curve to the longitudinal-friction curve.voidsetMaxBrakeTorque(float torque) Alter the maximum torque that the main brake can exert on the wheel.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 current settings.Methods inherited from class com.github.stephengold.joltjni.WheelSettings
getEnableSuspensionForcePoint, getPosition, getRadius, getSteeringAxis, getSuspensionDirection, getSuspensionForcePoint, getSuspensionMaxLength, getSuspensionMinLength, getSuspensionPreloadLength, getSuspensionSpring, getWheelForward, getWheelUp, getWidth, restoreBinaryState, saveBinaryState, setEnableSuspensionForcePoint, setPosition, setRadius, setSteeringAxis, setSuspensionDirection, setSuspensionForcePoint, setSuspensionMaxLength, setSuspensionMinLength, setSuspensionPreloadLength, setWheelForward, setWheelUp, setWidthMethods inherited from class com.github.stephengold.joltjni.SerializableObject
getRttiMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, 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, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRttiMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstWheelSettings
getEnableSuspensionForcePoint, getPosition, getRadius, getSteeringAxis, getSuspensionDirection, getSuspensionForcePoint, getSuspensionMaxLength, getSuspensionMinLength, getSuspensionPreloadLength, getSuspensionSpring, getWheelForward, getWheelUp, getWidth, saveBinaryState
-
Constructor Details
-
WheelSettingsWv
public WheelSettingsWv()Instantiate default settings. -
WheelSettingsWv
Instantiate a copy of the specified settings.- Parameters:
original- the settings to copy (notnull, unaffected)
-
-
Method Details
-
setLateralFriction
Copy the specified curve to the lateral-friction curve. (native attribute: mLateralFriction)- Parameters:
curve- the curve to copy (notnull, unaffected)
-
setLongitudinalFriction
Copy the specified curve to the longitudinal-friction curve. (native attribute: mLongitudinalFriction)- Parameters:
curve- the curve to copy (notnull, unaffected)
-
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)
-
getLateralFriction
Access the lateral friction as a function of the slip angle (in degrees). (native attribute: mLateralFriction)- Specified by:
getLateralFrictionin interfaceConstWheelSettingsWv- Returns:
- a new JVM object with the pre-existing native object assigned
-
getLongitudinalFriction
Access the longitudinal friction as a function of slip ratio. (native attribute: mLongitudinalFriction)- Specified by:
getLongitudinalFrictionin interfaceConstWheelSettingsWv- Returns:
- a new JVM object with the pre-existing native object assigned
-
getMaxBrakeTorque
public float getMaxBrakeTorque()Return the maximum torque that the main brake can exert on the wheel. The settings are unaffected. (native attribute: mMaxBrakeTorque)- Specified by:
getMaxBrakeTorquein interfaceConstWheelSettingsWv- 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)- Specified by:
getMaxHandBrakeTorquein interfaceConstWheelSettingsWv- Returns:
- the maximum torque (in Newton meters)
-
getMaxSteerAngle
public float getMaxSteerAngle()Return the maximum steering angle. The settings are unaffected. (native attribute: mMaxSteerAngle)- Specified by:
getMaxSteerAnglein interfaceConstWheelSettingsWv- Returns:
- the maximum steering angle (in radians)
-
getRefCount
public int getRefCount()Count the active references to the nativeWheelSettingsWv. The settings are unaffected.- Specified by:
getRefCountin interfaceRefTarget- Specified by:
getRefCountin classWheelSettings- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeWheelSettingsWVas embedded.- Specified by:
setEmbeddedin interfaceRefTarget- Specified by:
setEmbeddedin classWheelSettings
-
toRef
Create a counted reference to the current settings.- Specified by:
toRefin interfaceRefTarget- Specified by:
toRefin classWheelSettings- Returns:
- a new JVM object with a new native object assigned
-