java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.WheelSettings
com.github.stephengold.joltjni.WheelSettingsTv
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,ConstWheelSettings,ConstWheelSettingsTv,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
Settings used to construct a
WheelTv. (native type: WheelSettingsTV)-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate default settings.WheelSettingsTv(ConstWheelSettingsTv original) Instantiate a copy of the specified settings. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the tire's friction in the sideways direction.floatReturn the tire's friction in the forward direction.intCount the active references to the nativeWheelSettingsTV.voidMark the nativeWheelSettingsTVas embedded.voidsetLateralFriction(float friction) Alter the wheel's friction in the sideways direction.voidsetLongitudinalFriction(float friction) Alter the wheel's friction in the forward direction.toRef()Create a counted reference to the nativeWheelSettingsTV.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
-
WheelSettingsTv
public WheelSettingsTv()Instantiate default settings. -
WheelSettingsTv
Instantiate a copy of the specified settings.- Parameters:
original- the settings to copy (notnull, unaffected)
-
-
Method Details
-
setLateralFriction
public void setLateralFriction(float friction) Alter the wheel's friction in the sideways direction. (native attribute: mLateralFriction)- Parameters:
friction- the desired friction (default=2)
-
setLongitudinalFriction
public void setLongitudinalFriction(float friction) Alter the wheel's friction in the forward direction. (native attribute: mLongitudinalFriction)- Parameters:
friction- the desired friction (default=4)
-
getLateralFriction
public float getLateralFriction()Return the tire's friction in the sideways direction. The settings are unaffected. (native attribute: mLateralFriction)- Specified by:
getLateralFrictionin interfaceConstWheelSettingsTv- Returns:
- the friction
-
getLongitudinalFriction
public float getLongitudinalFriction()Return the tire's friction in the forward direction. The settings are unaffected. (native attribute: mLongitudinalFriction)- Specified by:
getLongitudinalFrictionin interfaceConstWheelSettingsTv- Returns:
- the friction
-
getRefCount
public int getRefCount()Count the active references to the nativeWheelSettingsTV. The settings are unaffected.- Specified by:
getRefCountin interfaceRefTarget- Specified by:
getRefCountin classWheelSettings- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeWheelSettingsTVas embedded.- Specified by:
setEmbeddedin interfaceRefTarget- Specified by:
setEmbeddedin classWheelSettings
-
toRef
Create a counted reference to the nativeWheelSettingsTV.- Specified by:
toRefin interfaceRefTarget- Specified by:
toRefin classWheelSettings- Returns:
- a new JVM object with a new native object assigned
-