I updated to the latest revision a few minutes back, any my code suddenly broke.
the issues are the following.
I cannt use this code any more,
[java]CompoundCollisionShape cs_basicPlatform = CollisionShapeFactory.createMeshCompoundShape(geo_basicPlatform);[/java] (this code is still in the doc)
I cant move the physics node with move/rotate method any more. But, I was using ‘setKinematic(true) and then move/rotate methods’ to ‘relocate and move’ those platforms(PhysicsNode).
Now If i have to re position a physics node, and use forces to move it every time, is this even an easy way to think?
Like, an uniformly infinitely rotating platform on its axis, on which a player will walk. :?
In the screen shot, I attached a boxCollision shape at the size of the upper portion of the rotatin platform(where it player can walk), then i rotated the PhysicsNode using rotate method, and it worked find.(I had to setKinematic to true)…this was before updating jMP
After update, everything is broke. I cannt move the platfrom using rotate method.I tried different ways, but all ended up in failure. Its just so frustrating. I cannt use force cause, the object is kinetic and i cannt set it to false, cause the lower portion of the platform is dipped in the ground.
Yeah, the constant geometry to physics updates in updateGeometricState were causing lots of problems so they are no longer available. Physics objects are no longer a Node but a Control, the PhysicsNode is just a Node with a PhysicsRigidBodyControl now. You can extend PhysicsRigidBodyControl and apply the geometry location each frame or something or simply use setPhysicsLocation of the PhysicsNode or RigidBodyControl.