Killer.Penguin Posted September 10, 2013 Share Posted September 10, 2013 Hello, we cannot get character with Ragdoll to be physically updated by gravity and other physical force. At a very confusing state here, what function do we use to move any 'non-playerActor' characters with physical collision detection? Any tutorial on this at all? Link to comment
sebastianbah Posted September 10, 2013 Share Posted September 10, 2013 Hello,Forces affects to a ragdoll bodies only when frame-based animation is disabled.Please, check that Node -> Body -> Frame-based animation checkbox at the top of property list is disabled to update character physically.To update physically only some parts of character you can use Frame-based animation checkbox under the Bones list for every physically approximated bone.To detect and process collisions for bodies you should check that collision masks and shapes are correct, and then you can use some functions from Body Class, such as: void setContactCallback(string function, variable arg0 = 0, variable arg1 = 0)Object getContactObject (int num)Body getContactBody0 (int contact)vec3 getContactPoint (int num)As a tutorial you can use physics samples from:At browser:Samples & Demos -> Physics Samples -> Object & features demo -> ragdoll_00 - ragdoll_13and documentation.Some additional information you can find in other physics articles and in tutorials. Link to comment
Recommended Posts