Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/rst/bge.constraints.rst
| Show All 22 Lines | .. function:: createConstraint(physicsid, physicsid2, constrainttype, [pivotX, pivotY, pivotZ, [axisX, axisY, axisZ, [flag]]]]) | ||||
| :arg constrainttype: the type of the constraint. The constraint types are: | :arg constrainttype: the type of the constraint. The constraint types are: | ||||
| - :class:`POINTTOPOINT_CONSTRAINT` | - :class:`POINTTOPOINT_CONSTRAINT` | ||||
| - :class:`LINEHINGE_CONSTRAINT` | - :class:`LINEHINGE_CONSTRAINT` | ||||
| - :class:`ANGULAR_CONSTRAINT` | - :class:`ANGULAR_CONSTRAINT` | ||||
| - :class:`CONETWIST_CONSTRAINT` | - :class:`CONETWIST_CONSTRAINT` | ||||
| - :class:`VEHICLE_CONSTRAINT` | - :class:`VEHICLE_CONSTRAINT` | ||||
| - :class:`GENERIC_6DOF_CONSTRAINT` | |||||
| :type constrainttype: int | :type constrainttype: int | ||||
| :arg pivotX: pivot X position | :arg pivotX: pivot X position | ||||
| :type pivotX: float | :type pivotX: float | ||||
| :arg pivotY: pivot Y position | :arg pivotY: pivot Y position | ||||
| :type pivotY: float | :type pivotY: float | ||||
| :arg pivotZ: pivot Z position | :arg pivotZ: pivot Z position | ||||
| :type pivotZ: float | :type pivotZ: float | ||||
| :arg axisX: X axis | :arg axisX: X axis | ||||
| :type axisX: float | :type axisX: float | ||||
| :arg axisY: Y axis | :arg axisY: Y axis | ||||
| :type axisY: float | :type axisY: float | ||||
| :arg axisZ: Z axis | :arg axisZ: Z axis | ||||
| :type axisZ: float | :type axisZ: float | ||||
| :arg flag: .. to do | :arg flag: 128 to disable collision between linked bodies | ||||
| :type flag: int | :type flag: int | ||||
| .. attribute:: error | .. attribute:: error | ||||
| Simbolic constant string that indicates error. | Simbolic constant string that indicates error. | ||||
| .. function:: exportBulletFile(filename) | .. function:: exportBulletFile(filename) | ||||
| ▲ Show 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | .. data:: CONETWIST_CONSTRAINT | ||||
| .. to do | .. to do | ||||
| .. data:: VEHICLE_CONSTRAINT | .. data:: VEHICLE_CONSTRAINT | ||||
| .. note:: | .. note:: | ||||
| Constraint type to be used with function :class:`createConstraint` | Constraint type to be used with function :class:`createConstraint` | ||||
| .. to do | .. to do | ||||
| .. data:: GENERIC_6DOF_CONSTRAINT | |||||
| .. note:: | |||||
| Constraint type to be used with function :class:`createConstraint` | |||||
| .. to do | |||||