You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to apply linear forces to an object off center and have those forces cause torque on the object. The only way I can find to do this is with the Forces component and its apply_force_at_point and apply_linear_impulse_at_point methods, which do what I need, but the point the force is applied at doesn't change as the object moves through the substep, causing the force to appear to lag behind as the object moves. This is causing objects that should be experiencing balanced forces to start to spin and lean when they shouldn't. The obvious solution is to apply the forces during the physics substep, but I can't figure out how to do that. The ConstantForce and ConstantLocalForce seem to apply their forces during the substep but they can only cause linear acceleration at the center of mass without any off center forces to cause torque. I could calculate it myself and use ConstantLocalTorque as well but I don't want to go through the work of doing that if I'm just overlooking something that Avian can already do for me
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I need to apply linear forces to an object off center and have those forces cause torque on the object. The only way I can find to do this is with the
Forcescomponent and itsapply_force_at_pointandapply_linear_impulse_at_pointmethods, which do what I need, but the point the force is applied at doesn't change as the object moves through the substep, causing the force to appear to lag behind as the object moves. This is causing objects that should be experiencing balanced forces to start to spin and lean when they shouldn't. The obvious solution is to apply the forces during the physics substep, but I can't figure out how to do that. TheConstantForceandConstantLocalForceseem to apply their forces during the substep but they can only cause linear acceleration at the center of mass without any off center forces to cause torque. I could calculate it myself and useConstantLocalTorqueas well but I don't want to go through the work of doing that if I'm just overlooking something that Avian can already do for meBeta Was this translation helpful? Give feedback.
All reactions