BGE: Cleanup constraints documentation

* Fixing Python example. Behavior has changed with Blender 2.74
* Adding missing return type
* Fixing typo simbolic
* Fixing note for upper/lower limit
* Adding link to constraints constants
This commit is contained in:
Thomas Szepe
2015-05-10 15:58:17 +02:00
parent a47ade34c2
commit 1c02a201ba
3 changed files with 20 additions and 21 deletions

View File

@@ -22,16 +22,14 @@ Physics Constraints (bge.constraints)
:type physicsid2: int
:arg constrainttype: the type of the constraint. The constraint types are:
:type constrainttype: int
- :class:`POINTTOPOINT_CONSTRAINT`
- :class:`LINEHINGE_CONSTRAINT`
- :class:`ANGULAR_CONSTRAINT`
- :class:`CONETWIST_CONSTRAINT`
- :class:`VEHICLE_CONSTRAINT`
- :class:`GENERIC_6DOF_CONSTRAINT`
:type constrainttype: int
:arg pivot_X: pivot X position
:type pivot_X: float (optional)
@@ -53,9 +51,12 @@ Physics Constraints (bge.constraints)
:arg flag: 128 to disable collision between linked bodies
:type flag: int (optional)
:return: a constraint wrapper.
:rtype: :class:`bge.types.KX_ConstraintWrapper`
.. attribute:: error
Simbolic constant string that indicates error.
Symbolic constant string that indicates error.
.. function:: exportBulletFile(filename)