Skip to main content
6 events
when toggle format what by license comment
Mar 9, 2018 at 17:28 comment added DMGregory I'd recommend keeping some mass on the object, otherwise force calculations get a bit weird (acceleration = force / mass which approaches infinity as mass approaches zero). Mass itself won't slow the object down (quite the opposite - inertia due to mass resists slowing down) as long as you've turned off the drag.
Mar 9, 2018 at 16:25 vote accept AfikDeri
Mar 9, 2018 at 16:25 comment added AfikDeri It works, I've created a new Physics Material 2D named Bouncy with a friction of 0 and bounciness of 1 and added it to the ball, it now works great. Thanks
Mar 9, 2018 at 16:01 comment added Nilmag You only have to AddForce once, if your object has no mass, gravity or drag. It should bounce around forever. Look at physics materials for your collider on your moving object too, then you can control its bounciness for e.g.
Mar 9, 2018 at 15:49 comment added AfikDeri Thanks for the reply, this is not the answer, I already have my mass at 0 and gravity at 0, the thing with AddForce() is not clear to me, when to add force? how match? on Start? Every update?
Mar 9, 2018 at 14:42 history answered Nilmag CC BY-SA 3.0