BGE: correct case for createConstraint keyword

This commit is contained in:
Campbell Barton 2015-06-16 21:22:41 +10:00
parent b986f955e9
commit 94eb2647d5
2 changed files with 15 additions and 15 deletions

@ -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

@ -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,