java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleCommandNonLinearResponseParams
Note: Brake, drive and steer response typically reduce at increased longitudinal speed. Moreover, response to a brake, throttle or steer command is typically
nonlinear and may be subject to dead zones where response is constant with either zero or non-zero response. PxVehicleCommandNonLinearResponseParams allows
command responses to be authored as multi-variate piecewise polynomials with normalized command response a function of command value and longitudinal speed.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddResponse(PxVehicleCommandValueResponseTable commandValueSpeedResponses) Add a table of normalised response vs speed and associated it with a specified command value.arrayGet(long baseAddress, int index) voidclear()voiddestroy()floatgetCommandValues(int index) shortThe number of command values.shortThe number of speeds and normalized responses.shortgetNbSpeedResponsesPerCommandValue(int index) floatgetSpeedResponses(int index) shortgetSpeedResponsesPerCommandValue(int index) voidsetCommandValues(int index, float value) voidsetNbCommandValues(short value) The number of command values.voidsetNbSpeedResponses(short value) The number of speeds and normalized responses.voidsetNbSpeedResponsesPerCommandValue(int index, short value) voidsetSpeedResponses(int index, float value) voidsetSpeedResponsesPerCommandValue(int index, short value) wrapPointer(long address) Methods 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
-
PxVehicleCommandNonLinearResponseParams
protected PxVehicleCommandNonLinearResponseParams(long address) -
PxVehicleCommandNonLinearResponseParams
public PxVehicleCommandNonLinearResponseParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getSpeedResponses
public float getSpeedResponses(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setSpeedResponses
public void setSpeedResponses(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getNbSpeedResponses
public short getNbSpeedResponses()The number of speeds and normalized responses. -
setNbSpeedResponses
public void setNbSpeedResponses(short value) The number of speeds and normalized responses. -
getSpeedResponsesPerCommandValue
public short getSpeedResponsesPerCommandValue(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: short
-
setSpeedResponsesPerCommandValue
public void setSpeedResponsesPerCommandValue(int index, short value) - Parameters:
index- Array indexvalue- WebIDL type: short
-
getNbSpeedResponsesPerCommandValue
public short getNbSpeedResponsesPerCommandValue(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: short
-
setNbSpeedResponsesPerCommandValue
public void setNbSpeedResponsesPerCommandValue(int index, short value) - Parameters:
index- Array indexvalue- WebIDL type: short
-
getCommandValues
public float getCommandValues(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setCommandValues
public void setCommandValues(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getNbCommandValues
public short getNbCommandValues()The number of command values. -
setNbCommandValues
public void setNbCommandValues(short value) The number of command values. -
clear
public void clear() -
addResponse
Add a table of normalised response vs speed and associated it with a specified command value. Note: commandValueSpeedResponses must be authored as a series of strictly increasing speeds with form {speed, normalizedResponse} Note: The responses added must form a series of strictly increasing command values.
-