Package physx.vehicle
Class PxVehicleSuspensionData
- java.lang.Object
-
- physx.NativeObject
-
- physx.vehicle.PxVehicleSuspensionData
-
public class PxVehicleSuspensionData extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description PxVehicleSuspensionData()protectedPxVehicleSuspensionData(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxVehicleSuspensionDatacreateAt(long address)static <T> PxVehicleSuspensionDatacreateAt(T allocator, NativeObject.Allocator<T> allocate)voiddestroy()floatgetMCamberAtMaxCompression()floatgetMCamberAtMaxDroop()floatgetMCamberAtRest()floatgetMMaxCompression()floatgetMMaxDroop()floatgetMSpringDamperRate()floatgetMSpringStrength()floatgetMSprungMass()voidsetMassAndPreserveNaturalFrequency(float newSprungMass)voidsetMCamberAtMaxCompression(float value)voidsetMCamberAtMaxDroop(float value)voidsetMCamberAtRest(float value)voidsetMMaxCompression(float value)voidsetMMaxDroop(float value)voidsetMSpringDamperRate(float value)voidsetMSpringStrength(float value)voidsetMSprungMass(float value)static PxVehicleSuspensionDatawrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxVehicleSuspensionData wrapPointer(long address)
-
createAt
public static PxVehicleSuspensionData createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleSuspensionData
-
createAt
public static <T> PxVehicleSuspensionData createAt(T allocator, NativeObject.Allocator<T> allocate)
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxVehicleSuspensionData
-
destroy
public void destroy()
-
getMSpringStrength
public float getMSpringStrength()
- Returns:
- WebIDL type: float
-
setMSpringStrength
public void setMSpringStrength(float value)
- Parameters:
value- WebIDL type: float
-
getMSpringDamperRate
public float getMSpringDamperRate()
- Returns:
- WebIDL type: float
-
setMSpringDamperRate
public void setMSpringDamperRate(float value)
- Parameters:
value- WebIDL type: float
-
getMMaxCompression
public float getMMaxCompression()
- Returns:
- WebIDL type: float
-
setMMaxCompression
public void setMMaxCompression(float value)
- Parameters:
value- WebIDL type: float
-
getMMaxDroop
public float getMMaxDroop()
- Returns:
- WebIDL type: float
-
setMMaxDroop
public void setMMaxDroop(float value)
- Parameters:
value- WebIDL type: float
-
getMSprungMass
public float getMSprungMass()
- Returns:
- WebIDL type: float
-
setMSprungMass
public void setMSprungMass(float value)
- Parameters:
value- WebIDL type: float
-
getMCamberAtRest
public float getMCamberAtRest()
- Returns:
- WebIDL type: float
-
setMCamberAtRest
public void setMCamberAtRest(float value)
- Parameters:
value- WebIDL type: float
-
getMCamberAtMaxCompression
public float getMCamberAtMaxCompression()
- Returns:
- WebIDL type: float
-
setMCamberAtMaxCompression
public void setMCamberAtMaxCompression(float value)
- Parameters:
value- WebIDL type: float
-
getMCamberAtMaxDroop
public float getMCamberAtMaxDroop()
- Returns:
- WebIDL type: float
-
setMCamberAtMaxDroop
public void setMCamberAtMaxDroop(float value)
- Parameters:
value- WebIDL type: float
-
setMassAndPreserveNaturalFrequency
public void setMassAndPreserveNaturalFrequency(float newSprungMass)
- Parameters:
newSprungMass- WebIDL type: float
-
-