ryerrabelli / jmonkeyengine

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

Collision flags #221

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add collision flags for jME3

e.g

enemy.setCollisionFlags(CHARACTER | ENEMY);

Then:

enemy.collideWith(player, ENEMY);

Only spatials that have the bitmask will be collision checked.

Original issue reported on code.google.com by ShadowIs...@gmail.com on 21 Oct 2010 at 2:32

GoogleCodeExporter commented 8 years ago
The physics has a similar system, I see you also want to implement it somehow 
like that. We should probably look for coherence there to not confuse the user 
too much with the two collision systems (which might be confusing enough 
already). Look at com.jme3.bullet.collision.PhysicsCollisionObject on how its 
implemented in the physics.

Original comment by normen667 on 21 Oct 2010 at 3:02

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 6 Sep 2012 at 5:34