Package physx.vehicle
Class PxVehicleDriveDynData
- java.lang.Object
-
- physx.NativeObject
-
- physx.vehicle.PxVehicleDriveDynData
-
public class PxVehicleDriveDynData extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxVehicleDriveDynData()protectedPxVehicleDriveDynData(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidforceGearChange(int targetGear)floatgetAnalogInput(int type)floatgetAutoBoxSwitchTime()intgetCurrentGear()floatgetEngineRotationSpeed()intgetGearChange()booleangetGearDown()floatgetGearSwitchTime()booleangetGearUp()floatgetMAutoBoxSwitchTime()floatgetMControlAnalogVals(int index)intgetMCurrentGear()floatgetMEnginespeed()booleangetMGearDownPressed()floatgetMGearSwitchTime()booleangetMGearUpPressed()intgetMTargetGear()booleangetMUseAutoGears()intgetNbAnalogInput()intgetTargetGear()booleangetUseAutoGears()voidsetAnalogInput(int type, float analogVal)voidsetAutoBoxSwitchTime(float autoBoxSwitchTime)voidsetCurrentGear(int currentGear)voidsetEngineRotationSpeed(float speed)voidsetGearChange(int gearChange)voidsetGearDown(boolean digitalVal)voidsetGearSwitchTime(float switchTime)voidsetGearUp(boolean digitalVal)voidsetMAutoBoxSwitchTime(float value)voidsetMControlAnalogVals(int index, float value)voidsetMCurrentGear(int value)voidsetMEnginespeed(float value)voidsetMGearDownPressed(boolean value)voidsetMGearSwitchTime(float value)voidsetMGearUpPressed(boolean value)voidsetMTargetGear(int value)voidsetMUseAutoGears(boolean value)voidsetTargetGear(int targetGear)voidsetToRestState()voidsetUseAutoGears(boolean useAutoGears)voidstartGearChange(int targetGear)voidtoggleAutoGears()static PxVehicleDriveDynDatawrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxVehicleDriveDynData wrapPointer(long address)
-
destroy
public void destroy()
-
getMControlAnalogVals
public float getMControlAnalogVals(int index)
- Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setMControlAnalogVals
public void setMControlAnalogVals(int index, float value)- Parameters:
index- Array indexvalue- WebIDL type: float
-
getMUseAutoGears
public boolean getMUseAutoGears()
- Returns:
- WebIDL type: boolean
-
setMUseAutoGears
public void setMUseAutoGears(boolean value)
- Parameters:
value- WebIDL type: boolean
-
getMGearUpPressed
public boolean getMGearUpPressed()
- Returns:
- WebIDL type: boolean
-
setMGearUpPressed
public void setMGearUpPressed(boolean value)
- Parameters:
value- WebIDL type: boolean
-
getMGearDownPressed
public boolean getMGearDownPressed()
- Returns:
- WebIDL type: boolean
-
setMGearDownPressed
public void setMGearDownPressed(boolean value)
- Parameters:
value- WebIDL type: boolean
-
getMCurrentGear
public int getMCurrentGear()
- Returns:
- WebIDL type: unsigned long
-
setMCurrentGear
public void setMCurrentGear(int value)
- Parameters:
value- WebIDL type: unsigned long
-
getMTargetGear
public int getMTargetGear()
- Returns:
- WebIDL type: unsigned long
-
setMTargetGear
public void setMTargetGear(int value)
- Parameters:
value- WebIDL type: unsigned long
-
getMEnginespeed
public float getMEnginespeed()
- Returns:
- WebIDL type: float
-
setMEnginespeed
public void setMEnginespeed(float value)
- Parameters:
value- WebIDL type: float
-
getMGearSwitchTime
public float getMGearSwitchTime()
- Returns:
- WebIDL type: float
-
setMGearSwitchTime
public void setMGearSwitchTime(float value)
- Parameters:
value- WebIDL type: float
-
getMAutoBoxSwitchTime
public float getMAutoBoxSwitchTime()
- Returns:
- WebIDL type: float
-
setMAutoBoxSwitchTime
public void setMAutoBoxSwitchTime(float value)
- Parameters:
value- WebIDL type: float
-
setToRestState
public void setToRestState()
-
setAnalogInput
public void setAnalogInput(int type, float analogVal)- Parameters:
type- WebIDL type: unsigned longanalogVal- WebIDL type: float
-
getAnalogInput
public float getAnalogInput(int type)
- Parameters:
type- WebIDL type: unsigned long- Returns:
- WebIDL type: float
-
setGearUp
public void setGearUp(boolean digitalVal)
- Parameters:
digitalVal- WebIDL type: boolean
-
setGearDown
public void setGearDown(boolean digitalVal)
- Parameters:
digitalVal- WebIDL type: boolean
-
getGearUp
public boolean getGearUp()
- Returns:
- WebIDL type: boolean
-
getGearDown
public boolean getGearDown()
- Returns:
- WebIDL type: boolean
-
setUseAutoGears
public void setUseAutoGears(boolean useAutoGears)
- Parameters:
useAutoGears- WebIDL type: boolean
-
getUseAutoGears
public boolean getUseAutoGears()
- Returns:
- WebIDL type: boolean
-
toggleAutoGears
public void toggleAutoGears()
-
setCurrentGear
public void setCurrentGear(int currentGear)
- Parameters:
currentGear- WebIDL type: unsigned long
-
getCurrentGear
public int getCurrentGear()
- Returns:
- WebIDL type: unsigned long
-
setTargetGear
public void setTargetGear(int targetGear)
- Parameters:
targetGear- WebIDL type: unsigned long
-
getTargetGear
public int getTargetGear()
- Returns:
- WebIDL type: unsigned long
-
startGearChange
public void startGearChange(int targetGear)
- Parameters:
targetGear- WebIDL type: unsigned long
-
forceGearChange
public void forceGearChange(int targetGear)
- Parameters:
targetGear- WebIDL type: unsigned long
-
setEngineRotationSpeed
public void setEngineRotationSpeed(float speed)
- Parameters:
speed- WebIDL type: float
-
getEngineRotationSpeed
public float getEngineRotationSpeed()
- Returns:
- WebIDL type: float
-
getGearSwitchTime
public float getGearSwitchTime()
- Returns:
- WebIDL type: float
-
getAutoBoxSwitchTime
public float getAutoBoxSwitchTime()
- Returns:
- WebIDL type: float
-
getNbAnalogInput
public int getNbAnalogInput()
- Returns:
- WebIDL type: unsigned long
-
setGearChange
public void setGearChange(int gearChange)
- Parameters:
gearChange- WebIDL type: unsigned long
-
getGearChange
public int getGearChange()
- Returns:
- WebIDL type: unsigned long
-
setGearSwitchTime
public void setGearSwitchTime(float switchTime)
- Parameters:
switchTime- WebIDL type: float
-
setAutoBoxSwitchTime
public void setAutoBoxSwitchTime(float autoBoxSwitchTime)
- Parameters:
autoBoxSwitchTime- WebIDL type: float
-
-