Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
| Show First 20 Lines • Show All 495 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| /* FIXME - physicsid is a long being cast to a pointer, should at least use PyCapsule */ | /* FIXME - physicsid is a long being cast to a pointer, should at least use PyCapsule */ | ||||
| unsigned long long physicsid = 0, physicsid2 = 0; | unsigned long long physicsid = 0, physicsid2 = 0; | ||||
| int constrainttype = 0; | int constrainttype = 0; | ||||
| int flag = 0; | int flag = 0; | ||||
| 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, | ||||
| &pivotX, &pivotY, &pivotZ, &axisX, &axisY, &axisZ, &flag)) | &pivotX, &pivotY, &pivotZ, &axisX, &axisY, &axisZ, &flag)) | ||||
| { | { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines | |||||