Module de.fabmax.physxjni
Package physx.vehicle2
Class PxVehicleDirectDriveThrottleCommandResponseParams
java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleCommandResponseParams
physx.vehicle2.PxVehicleDirectDriveThrottleCommandResponseParams
public class PxVehicleDirectDriveThrottleCommandResponseParams
extends PxVehicleCommandResponseParams
Distribute a throttle response to the wheels of a direct drive vehicle.
Note: The drive torque applied to each wheel on the ith axle is throttleCommand * maxResponse * wheelResponseMultipliers[i].
Note: A typical use case is to set maxResponse to be the vehicle's maximum achievable drive torque
that occurs when the steer command is equal to 1.0. The array wheelResponseMultipliers[i] would then be used
to specify the maximum achievable drive torque per wheel as a fractional multiplier of the vehicle's maximum achievable steer angle.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPxVehicleDirectDriveThrottleCommandResponseParams(long address) -
Method Summary
Modifier and TypeMethodDescriptionarrayGet(long baseAddress, int index) voiddestroy()booleanisValid(PxVehicleAxleDescription axleDesc) transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) wrapPointer(long address) Methods inherited from class physx.vehicle2.PxVehicleCommandResponseParams
getMaxResponse, getNonlinearResponse, getWheelResponseMultipliers, setMaxResponse, setNonlinearResponse, setWheelResponseMultipliersMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxVehicleDirectDriveThrottleCommandResponseParams
protected PxVehicleDirectDriveThrottleCommandResponseParams(long address) -
PxVehicleDirectDriveThrottleCommandResponseParams
public PxVehicleDirectDriveThrottleCommandResponseParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
public static PxVehicleDirectDriveThrottleCommandResponseParams arrayGet(long baseAddress, int index) -
destroy
public void destroy()- Overrides:
destroyin classPxVehicleCommandResponseParams
-
transformAndScale
public PxVehicleDirectDriveThrottleCommandResponseParams transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) - Parameters:
srcFrame- WebIDL type:PxVehicleFrame[Const, Ref]trgFrame- WebIDL type:PxVehicleFrame[Const, Ref]srcScale- WebIDL type:PxVehicleScale[Const, Ref]trgScale- WebIDL type:PxVehicleScale[Const, Ref]- Returns:
- WebIDL type:
PxVehicleDirectDriveThrottleCommandResponseParams[Value]
-
isValid
- Parameters:
axleDesc- WebIDL type:PxVehicleAxleDescription[Const, Ref]- Returns:
- WebIDL type: boolean
-