[Bf-gamedev] getReactionForce

Alex Fraser alex at phatcore.com
Thu Sep 11 11:24:02 CEST 2014


It's not ideal, but you can calculate the acceleration by keeping track of
an object's location on every frame.  Then if you know the other forces
that are acting on it (e.g. due to gravity and animation), you could
subtract those to calculate the reaction force.

I can't comment on how easy it would be to fix the actual getReactionForce
function.

Alex
On 11 Sep 2014 07:15, "Jacob Merrill" <blueprintrandom1 at gmail.com> wrote:

>
> http://www.blender.org/documentation/249PythonDoc/GE/GameTypes.KX_GameObject-class.html#getReactionForce
>
> is there any way to implement this ?
>
> can the data returned be per collision
>
> ?
>
> like
>
> f= own.getReactionForce[0]
>
> print f
>
> object, local force, world force ?
>
> I really need it for many different projects but mainly the walking
> ragdoll
> https://www.youtube.com/watch?v=quGPXLF1LiI
>
> Thanks!
>
>
> _______________________________________________
> Bf-gamedev mailing list
> Bf-gamedev at blender.org
> http://lists.blender.org/mailman/listinfo/bf-gamedev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-gamedev/attachments/20140911/3337cf6b/attachment.htm 


More information about the Bf-gamedev mailing list