Item drop physics in 2D game

Killing the boss usually drop things, I know how to spawn items after his death ,but how to force them drop in different directions? Like in borderlands when boss is dying, he explodes fountain of things in different directions.

Tags :


  • RaiNoteRaiNote Posts: 2Member

    What you could try do is generate random numbers which will change change the velocity of the dropped items and their direction to randomize the actual drop position. This way it can look like the items popping out of an object into the air and then falling down due to gravity.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file