base class — PyObjectPlus
KX_ConstraintWrapper
Returns the contraint ID
Returns: | the constraint ID |
---|---|
Return type: | integer |
Set the contraint limits
Parameters: | axis (integer) – |
---|
Note
For each axis: * Lowerlimit == Upperlimit -> axis is locked * Lowerlimit > Upperlimit -> axis is free * Lowerlimit < Upperlimit -> axis it limited in that range
PHY_LINEHINGE_CONSTRAINT = 2 or PHY_ANGULAR_CONSTRAINT = 3: axis = 3 is a constraint limit, with low/high limit value
- 3: X axis angle
arg value0 (min): | |
---|---|
Set the minimum limit of the axis | |
type value0: | float |
arg value1 (max): | |
Set the maximum limit of the axis | |
type value1: | float |
PHY_CONE_TWIST_CONSTRAINT = 3: axis = 3..5 are constraint limits, high limit values
- 3: X axis angle
- 4: Y axis angle
- 5: Z axis angle
arg value0 (min): | |
---|---|
Set the minimum limit of the axis | |
type value0: | float |
arg value1 (max): | |
Set the maximum limit of the axis | |
type value1: | float |
PHY_GENERIC_6DOF_CONSTRAINT = 12: axis = 0..2 are constraint limits, with low/high limit value
- 0: X axis position
- 1: Y axis position
- 2: Z axis position
arg value0 (min): | |
---|---|
Set the minimum limit of the axis | |
type value0: | float |
arg value1 (max): | |
Set the maximum limit of the axis | |
type value1: | float |
arg value0 (speed): | |
---|---|
Set the linear velocity of the axis | |
type value0: | float Range: -10,000.00 to 10,000.00 |
arg value1 (force): | |
Set the maximum force limit of the axis | |
type value1: | float Range: -10,000.00 to 10,000.00 |
arg value0 (stiffness): | |
---|---|
Set the stiffness of the spring | |
type value0: | float |
arg value1 (damping): | |
Tendency of the spring to return to it’s original position | |
type value1: | float 1.0 = springs back to original position (no damping) 0.0 = don’t springs back |
Get the contraint position or euler angle of a generic 6DOF constraint
Parameters: | axis (integer) – |
---|
Returns: | position |
---|---|
Return type: | float |
Returns: | angle |
---|---|
Return type: | float |
Returns the contraint ID (read only)
Type: | integer |
---|
Returns the contraint type (read only)
Type: | integer
|
---|