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

public abstract class TireMaxImpulseCallback extends JoltPhysicsObject
Calculate maximum tire impulses for a wheeled vehicle. (native type: WheeledVehicleController::TireMaxImpulseCallback)
  • 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 (not null, capacity≥2, 0:lateral, 1:longitudinal)
      suspensionImpulse - the suspension impulse
      longitudinalFriction - the longitudinal friction coefficient
      lateralFriction - the lateral friction coefficient
      longitudinalSlip - the longitudinal slip component
      lateralSlip - the lateral slip component
      deltaTime - the duration of the simulation step (in seconds)