BGE: correct case for createConstraint keyword
This commit is contained in:
@@ -29,26 +29,26 @@ Physics Constraints (bge.constraints)
|
|||||||
:arg physicsid_2: the physics id of the second object in constraint.
|
:arg physicsid_2: the physics id of the second object in constraint.
|
||||||
:type physicsid_2: int
|
:type physicsid_2: int
|
||||||
|
|
||||||
:arg constrainttype: the type of the constraint.
|
:arg constraint_type: the type of the constraint.
|
||||||
:type constrainttype: int
|
:type constraint_type: int
|
||||||
|
|
||||||
:arg pivot_X: pivot X position (optional).
|
:arg pivot_x: pivot X position (optional).
|
||||||
:type pivot_X: float
|
:type pivot_x: float
|
||||||
|
|
||||||
:arg pivot_Y: pivot Y position (optional).
|
:arg pivot_y: pivot Y position (optional).
|
||||||
:type pivot_Y: float
|
:type pivot_y: float
|
||||||
|
|
||||||
:arg pivot_Z: pivot Z position (optional).
|
:arg pivot_z: pivot Z position (optional).
|
||||||
:type pivot_Z: float
|
:type pivot_z: float
|
||||||
|
|
||||||
:arg axis_X: X axis angle in degrees (optional).
|
:arg axis_x: X axis angle in degrees (optional).
|
||||||
:type axis_X: float
|
:type axis_x: float
|
||||||
|
|
||||||
:arg axis_Y: Y axis angle in degrees (optional).
|
:arg axis_y: Y axis angle in degrees (optional).
|
||||||
:type axis_Y: float
|
:type axis_y: float
|
||||||
|
|
||||||
:arg axis_Z: Z axis angle in degrees (optional).
|
:arg axis_z: Z axis angle in degrees (optional).
|
||||||
:type axis_Z: float
|
:type axis_z: float
|
||||||
|
|
||||||
:arg flag: 128 to disable collision between linked bodies (optional).
|
:arg flag: 128 to disable collision between linked bodies (optional).
|
||||||
:type flag: int
|
: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;
|
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",
|
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,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds, "KKi|ffffffi:createConstraint", (char **)kwlist,
|
||||||
&physicsid, &physicsid2, &constrainttype,
|
&physicsid, &physicsid2, &constrainttype,
|
||||||
|
Reference in New Issue
Block a user