safon007 / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

new Lua-Functions for NearSensor: getNearObjectCount() and getNearObject(int) #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
First there was a bug. if neither property nor material is set to filter the 
nearobjects, the object the NearSeasor is attached to, recognized itself as 
near-object.

Additional I added similar to collision and touchsensor methods to query the 
near-objects in lua. Like this:
int count = nearSensor:getNearObjectCount()
obj = nearSensor:getNearObject(0)

Original issue reported on code.google.com by thomas.t...@googlemail.com on 8 Nov 2011 at 11:37

Attachments:

GoogleCodeExporter commented 8 years ago
Oh here is the patch;

Original comment by thomas.t...@googlemail.com on 8 Nov 2011 at 11:38

Attachments:

GoogleCodeExporter commented 8 years ago
Patch is applied to trunk. Thanks.

Original comment by harkon...@gmail.com on 12 Nov 2011 at 2:14