Hi Matty. A question about the new force updates ...
Quote: "Add more commands to apply forces to limbs/bones. "
Will there be a command such as dynAddForceAtPos()? When a bullet hits a crate for example, I will want to add the force in the direction of the bullet (how it orientated to the world axis) but and at a global point (returned by collision data) on the crate.
I am experimenting now, but I believe ...
dynAddForce() will simply apply force to centre of the objects mass, which isn't suitable.
dynAddLocalForce() as above, but using the object's own axis for orientation, which I'm guessing it more appropriate for forces generated by the object itself (e.g. thrusters on the back of a ship)
dynAddLocalForceAtLocalPos() is almost there, as it'd allow me to specify where the bullet collides with the crate as the position the force is applied (after some funky conversion to it's own global axis), but the force would then need to be described using the object's axis, rather than the bullet's trajectory, which is along the global axis.
To me it feels like there is a missing command dynAddForceAtPos() for this scenario.
It may be possible for me the used EZRotate to calculate how a global axis force for a bullet translates to the local axis of an object, but it feels like this would be a common usage and dyn would benefit from having that sort of command.
As a side and a heads up dynAddLocalForceAtLocalPos () has these copy/paste types in the help file:
posX - Force to be applied along the x axis.
posY - Force to be applied along the y axis.
posZ - Force to be applied along the z axis.