I'm trying to detect if my waterNode lands on a scoreBoard (or touches it) , though the hasCollsion doesn't seem to work. http://code.google.com/p/tlc-spacegame/source/browse/trunk/client_dev/src/mg/house/WaterFilter/FilterGameState.java#273 Line 273 is where the mess starts.
I only had a quick look through your code and i saw this in line 215:
else if (cubeDropped = true)
Theres only one "="...
About your problem: I think you use JmePysics2 - the PhysicsGameState?
But your code uses the jme-build-in collision detection.
There is somewhere a collision-callback interface in JMEPhysics2, where you get Collisionresponses from JmePhyiscs2. Irrisor perhaps knows more...
Also the initialisation in the constructor is perhaps a problem - you call node.generatePhysicsGeometry() before PhysicsSpace.create()....
Regards
snare
snareoj2 said:
There is somewhere a collision-callback interface in JMEPhysics2, where you get Collisionresponses from JmePhyiscs2.
that's true. give the physics tutorials a try :)