diff options
-rw-r--r-- | doc/python_api/rst/bge.constraints.rst | 28 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_PyConstraintBinding.cpp | 2 |
2 files changed, 15 insertions, 15 deletions
diff --git a/doc/python_api/rst/bge.constraints.rst b/doc/python_api/rst/bge.constraints.rst index 14ebc61dbf5..b7df227400b 100644 --- a/doc/python_api/rst/bge.constraints.rst +++ b/doc/python_api/rst/bge.constraints.rst @@ -29,26 +29,26 @@ Physics Constraints (bge.constraints) :arg physicsid_2: the physics id of the second object in constraint. :type physicsid_2: int - :arg constrainttype: the type of the constraint. - :type constrainttype: int + :arg constraint_type: the type of the constraint. + :type constraint_type: int - :arg pivot_X: pivot X position (optional). - :type pivot_X: float + :arg pivot_x: pivot X position (optional). + :type pivot_x: float - :arg pivot_Y: pivot Y position (optional). - :type pivot_Y: float + :arg pivot_y: pivot Y position (optional). + :type pivot_y: float - :arg pivot_Z: pivot Z position (optional). - :type pivot_Z: float + :arg pivot_z: pivot Z position (optional). + :type pivot_z: float - :arg axis_X: X axis angle in degrees (optional). - :type axis_X: float + :arg axis_x: X axis angle in degrees (optional). + :type axis_x: float - :arg axis_Y: Y axis angle in degrees (optional). - :type axis_Y: float + :arg axis_y: Y axis angle in degrees (optional). + :type axis_y: float - :arg axis_Z: Z axis angle in degrees (optional). - :type axis_Z: float + :arg axis_z: Z axis angle in degrees (optional). + :type axis_z: float :arg flag: 128 to disable collision between linked bodies (optional). :type flag: int diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp index 065251f5676..bfac9a87512 100644 --- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp +++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp @@ -501,7 +501,7 @@ static PyObject *gPyCreateConstraint(PyObject *self, float pivotX = 0.0f, pivotY = 0.0f, pivotZ = 0.0f, axisX = 0.0f, axisY = 0.0f, axisZ = 0.0f; static const char *kwlist[] = {"physicsid_1", "physicsid_2", "constraint_type", "pivot_x", "pivot_y", "pivot_z", - "axis_X", "axis_y", "axis_z", "flag", NULL}; + "axis_x", "axis_y", "axis_z", "flag", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwds, "KKi|ffffffi:createConstraint", (char **)kwlist, &physicsid, &physicsid2, &constrainttype, |