I am using the blender game engine to run drop test physics simulations and I was wondering if there is a way to collect the force and impact data from the collision. Maybe using "appliedImpulse"? I am using Python within the BGE and can already collect impact points. I am trying to find contact time and/or force. Thank you!
$\begingroup$
$\endgroup$
3
-
$\begingroup$ It sounds like what you're looking to measure is a change in velocity. Look into getLinearVelocity() $\endgroup$– MentalistCommented Jun 27, 2019 at 3:13
-
$\begingroup$ @Mentalist is there a way to check the change in velocity over time? For acceleration etc. $\endgroup$– Russell ChowCommented Jun 28, 2019 at 15:48
-
$\begingroup$ Yes. On each tick of the game engine, measure the linear velocity, and based on the difference between the current and last tick - do something. I used this approach to calculate fall damage and it worked pretty well. Make sure the object is using a compatible physics type, or it won't work. $\endgroup$– MentalistCommented Jun 29, 2019 at 23:46
Add a comment
|