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 TypeMethodDescriptionfloat
Return the tire's friction in the sideways direction.float
Return the tire's friction in the forward direction.int
Count the active references to the nativeWheelSettingsTV
.void
Mark the nativeWheelSettingsTV
as embedded.void
setLateralFriction
(float friction) Alter the wheel's friction in the sideways direction.void
setLongitudinalFriction
(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, setWidth
Methods inherited from class com.github.stephengold.joltjni.SerializableObject
getRtti
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, 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
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
Methods 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:
getLateralFriction
in 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:
getLongitudinalFriction
in interfaceConstWheelSettingsTv
- Returns:
- the friction
-
getRefCount
public int getRefCount()Count the active references to the nativeWheelSettingsTV
. The settings are unaffected.- Specified by:
getRefCount
in interfaceRefTarget
- Specified by:
getRefCount
in classWheelSettings
- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeWheelSettingsTV
as embedded.- Specified by:
setEmbedded
in interfaceRefTarget
- Specified by:
setEmbedded
in classWheelSettings
-
toRef
Create a counted reference to the nativeWheelSettingsTV
.- Specified by:
toRef
in interfaceRefTarget
- Specified by:
toRef
in classWheelSettings
- Returns:
- a new JVM object with a new native object assigned
-