Blender Git Loki

Git Commits -> Revision a4ad52f

Revision a4ad52f by Campbell Barton (master)
February 25, 2009, 17:19 (GMT)
New Pulse option for the collision sensor (off by default wont change existing logic)

Previously only the first collision would trigger an event (no collisions a negative event ofcourse)

With the Pulse option enabled, any change to the set of colliding objects will trigger an event.

Added this because there was no way to count how many sheep were on a platform in YoFrankie without running a script periodically.

Changes in collision are detected by comparing the number of objects colliding with the last event, as well as a hash made from the object pointers.

Also changed the touch sensors internal list of colliding objects to only contain objects that match the property or material.

- pulse isnt a great name, could change this.

Commit Details:

Full Hash: a4ad52f1aaa1c8ed0d2f1345cbff99769f353ae9
SVN Revision: 19117
Parent Commit: 7fffb0b
Lines Changed: +53, -53

6 Modified Paths:

/source/blender/makesdna/DNA_sensor_types.h (+1, -0) (Diff)
/source/blender/src/buttons_logic.c (+9, -5) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+5, -3) (Diff)
/source/gameengine/Ketsji/KX_NearSensor.cpp (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_TouchSensor.cpp (+22, -44) (Diff)
/source/gameengine/Ketsji/KX_TouchSensor.h (+15, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021