Package com.github.stephengold.joltjni
Class TireMaxImpulseCallback
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.TireMaxImpulseCallback
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
CustomTireMaxImpulseCallback,SimpleTireMaxImpulseCallback
Calculate maximum tire impulses for a wheeled vehicle. (native type:
WheeledVehicleController::TireMaxImpulseCallback)-
Method Summary
Modifier and TypeMethodDescriptionvoidcalculate(int wheelIndex, FloatBuffer storeFloats, float suspensionImpulse, float longitudinalFriction, float lateralFriction, float longitudinalSlip, float lateralSlip, float deltaTime) Perform the calculations.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
calculate
public void calculate(int wheelIndex, FloatBuffer storeFloats, float suspensionImpulse, float longitudinalFriction, float lateralFriction, float longitudinalSlip, float lateralSlip, float deltaTime) Perform the calculations.- Parameters:
wheelIndex- the index of the desired wheel (≥0)storeFloats- storage for the results (notnull, capacity≥2, 0:lateral, 1:longitudinal)suspensionImpulse- the suspension impulselongitudinalFriction- the longitudinal friction coefficientlateralFriction- the lateral friction coefficientlongitudinalSlip- the longitudinal slip componentlateralSlip- the lateral slip componentdeltaTime- the duration of the simulation step (in seconds)
-