-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Use |
Beta Was this translation helpful? Give feedback.
-
This should work:
But |
Beta Was this translation helpful? Give feedback.
-
I'm a little confused as the mass doesn't seem to be doing anything for me. :( Let's say I have Box A that I set to 100.f mass and Box B 1.f mass. When I use the add force function for both boxes, both boxes are accelerating at the same time. If I understand this correctly, the box with a larger mass will have a smaller acceleration, right? I'm also thinking that there should also be a difference in collision response if I collide both box A and box B together. Please take a look at my screen recording. minuscule-engine-width-1920-height-1080-fps-5597-delta-time-0_dttbi7QT.mp4I'm using this function currently
and |
Beta Was this translation helpful? Give feedback.
Correct if you're using
BodyInterface/Body::AddForce
they will get different accelerations. If you're expecting the boxes to have different acceleration due to gravity then no, they will accelerate in the same way.Yes, this should also be the case. The heavy box should be far less affected.
If I change the
HeavyOnLightTest
sample to: