Files
test/source/gameengine/Ketsji
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
..
2015-01-21 11:57:11 +11:00
2013-07-02 09:47:22 +00:00
2014-10-07 15:47:32 -05:00
2014-10-07 15:47:32 -05:00
2014-10-07 15:47:32 -05:00
2013-03-18 11:44:56 +00:00
2014-10-07 15:47:32 -05:00
2014-11-21 14:16:35 +01:00
2014-10-07 15:47:32 -05:00
2012-09-16 04:58:18 +00:00
2012-10-22 08:15:51 +00:00
2012-10-29 02:11:40 +00:00
2012-09-16 04:58:18 +00:00
2013-03-29 06:21:28 +00:00
2014-06-25 15:47:37 -07:00
2014-11-21 14:16:35 +01:00
2014-07-21 10:53:07 +10:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2013-03-26 07:29:01 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2012-11-05 14:24:35 +00:00
2013-07-02 09:47:22 +00:00
2013-12-24 05:44:54 +11:00
2014-10-07 15:47:32 -05:00