blender/doc/python_api
Sybren A. Stüvel dd65a44c9a BGE physics: When colliding, report first contact point to Python
This patch adds two parameters to the functions in the
collisionCallbacks list. The callback function should thus be like
this:

```
def on_colliding(other, point, normal):
    print("Colliding with %s at %s with normal %s" % (other, point, normal))

game_ob.collisionCallbacks.append(on_colliding)
```

The `point` parameter will contain the collision point in world
coordinates on the current object, and the `normal` contains the
surface normal at the collision point.

The callback functions are checked for the number of arguments
`co_argcount`. The new `point` and `normal` arguments are only passed
when `co_argcount > 1` or when `co_argcount` cannot be determined.

Reviewers: brita_, campbellbarton

Subscribers: sergey, sybren, agoose77

Projects: #game_physics

Differential Revision: https://developer.blender.org/D926
2015-02-08 15:52:13 +01:00
..
blender-org
epy
examples mathutils: added exponential map to Quaternion 2015-02-01 13:06:00 +01:00
rst BGE physics: When colliding, report first contact point to Python 2015-02-08 15:52:13 +01:00
rst_from_bmesh_opdefines.py Add flag for bmesh docs 2014-09-09 22:07:31 +10:00
sphinx_changelog_gen.py cleanup: pep8 2015-01-29 15:35:06 +11:00
sphinx_doc_gen.py Documentation: Support documenting constructors in class __doc__ 2015-02-01 14:00:43 +01:00
sphinx_doc_gen.sh API Docs: remove hardcoded self from shellscript 2014-11-26 20:24:04 +01:00
sphinx_doc_gen_monkeypatch.py Cleanup: pep8 2014-09-17 18:36:17 +10:00