BGE: Constraint wrapper fix.
1. This patch fix the KX_ConstraintWrapper documentation (radian instead of degrees). 2. It also adds the missing GENERIC_6DOF_CONSTRAINT constant. Reviewers: dfelinto Reviewed By: dfelinto Differential Revision: https://developer.blender.org/D672
This commit is contained in:
@@ -56,7 +56,7 @@ base class --- :class:`PyObjectPlus`
|
|||||||
* 1: Y axis position
|
* 1: Y axis position
|
||||||
* 2: Z axis position
|
* 2: Z axis position
|
||||||
|
|
||||||
axis = 3..5 are relative constraint (Euler) angles in degrees
|
axis = 3..5 are relative constraint (Euler) angles in radians
|
||||||
* 3: X axis angle
|
* 3: X axis angle
|
||||||
* 4: Y axis angle
|
* 4: Y axis angle
|
||||||
* 5: Z axis angle
|
* 5: Z axis angle
|
||||||
@@ -86,7 +86,7 @@ base class --- :class:`PyObjectPlus`
|
|||||||
* 13: Y axis position
|
* 13: Y axis position
|
||||||
* 14: Z axis position
|
* 14: Z axis position
|
||||||
|
|
||||||
axis = 15..17 are for angular springs on each of the degrees of freedom
|
axis = 15..17 are for angular springs on each of the angle of freedom in radians
|
||||||
* 15: X axis angle
|
* 15: X axis angle
|
||||||
* 16: Y axis angle
|
* 16: Y axis angle
|
||||||
* 17: Z axis angle
|
* 17: Z axis angle
|
||||||
@@ -113,7 +113,7 @@ base class --- :class:`PyObjectPlus`
|
|||||||
:return: position
|
:return: position
|
||||||
:rtype: float
|
:rtype: float
|
||||||
|
|
||||||
axis = 3..5 are relative constraint (Euler) angles in degrees
|
axis = 3..5 are relative constraint (Euler) angles in radians
|
||||||
* 3: X axis angle
|
* 3: X axis angle
|
||||||
* 4: Y axis angle
|
* 4: Y axis angle
|
||||||
* 5: Z axis angle
|
* 5: Z axis angle
|
||||||
|
@@ -740,6 +740,7 @@ PyObject *initPythonConstraintBinding()
|
|||||||
KX_MACRO_addTypesToDict(d, ANGULAR_CONSTRAINT, PHY_ANGULAR_CONSTRAINT);
|
KX_MACRO_addTypesToDict(d, ANGULAR_CONSTRAINT, PHY_ANGULAR_CONSTRAINT);
|
||||||
KX_MACRO_addTypesToDict(d, CONETWIST_CONSTRAINT, PHY_CONE_TWIST_CONSTRAINT);
|
KX_MACRO_addTypesToDict(d, CONETWIST_CONSTRAINT, PHY_CONE_TWIST_CONSTRAINT);
|
||||||
KX_MACRO_addTypesToDict(d, VEHICLE_CONSTRAINT, PHY_VEHICLE_CONSTRAINT);
|
KX_MACRO_addTypesToDict(d, VEHICLE_CONSTRAINT, PHY_VEHICLE_CONSTRAINT);
|
||||||
|
KX_MACRO_addTypesToDict(d, GENERIC_6DOF_CONSTRAINT, PHY_GENERIC_6DOF_CONSTRAINT);
|
||||||
|
|
||||||
// Check for errors
|
// Check for errors
|
||||||
if (PyErr_Occurred()) {
|
if (PyErr_Occurred()) {
|
||||||
|
Reference in New Issue
Block a user