Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/rst/bge.constraints.rst
| Context not available. | |||||
| .. literalinclude:: ../examples/bge.constraints.py | .. literalinclude:: ../examples/bge.constraints.py | ||||
| :lines: 6- | :lines: 6- | ||||
| .. function:: createConstraint(physicsid, physicsid2, constrainttype, [pivotX, pivotY, pivotZ, [axisX, axisY, axisZ, [flag]]]]) | .. function:: createConstraint(physicsid, physicsid2, constrainttype, [pivotX, pivotY, pivotZ, [axisX, axisY, axisZ], [flag]]) | ||||
| Creates a constraint. | Creates a constraint. | ||||
| Context not available. | |||||
| :arg filename: File name | :arg filename: File name | ||||
| :type filename: string | :type filename: string | ||||
| .. function:: getConstraint(gameobj) | |||||
| :arg gameobj: The game object with the constraint physics. | |||||
| :type gameobj: :class:`bge.types.KX_GameObject` | |||||
| :return: constraint wrapper | |||||
| :rtype: :class:`bge.types.KX_ConstraintWrapper` | |||||
| .. function:: getAppliedImpulse(constraintId) | .. function:: getAppliedImpulse(constraintId) | ||||
| :arg constraintId: The id of the constraint. | :arg constraintId: The id of the constraint. | ||||
| Context not available. | |||||