Open 3D Engine PhysX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
PhysX::JointLimitProperties Struct Reference

Public Member Functions

 AZ_CLASS_ALLOCATOR (JointLimitProperties, AZ::SystemAllocator)
 
 AZ_TYPE_INFO (JointLimitProperties, "{31F941CB-6699-48BB-B12D-61874B52B984}")
 
 JointLimitProperties (bool isLimited, bool isSoftLimit, float damping, float limitFirst, float limitSecond, float stiffness, float tolerance)
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

bool m_isLimited = true
 Specifies if limits are applied to the joint constraints. E.g. if the swing angles are limited.
 
bool m_isSoftLimit = false
 If limit is soft, spring and damping are used, otherwise tolerance is used. Converting between soft/hard limit at game time is allowed.
 
float m_damping = 20.0f
 The damping strength of the drive, the force proportional to the velocity error. Used if limit is soft.
 
float m_limitFirst = 45.0f
 Positive angle limit in the case of twist angle limits, Y-axis swing limit in the case of cone limits.
 
float m_limitSecond = 45.0f
 Negative angle limit in the case of twist angle limits, Z-axis swing limit in the case of cone limits.
 
float m_stiffness = 100.0f
 The spring strength of the drive, the force proportional to the position error. Used if limit is soft.
 
float m_tolerance = 0.1f
 Distance from the joint at which limits becomes enforced. Used if limit is hard.
 

The documentation for this struct was generated from the following file: