View Single Post
  #19  
Old 11-17-2011, 09:49 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is just really niceTricxta is just really nice
You can invert the angle easily by doing

invertedangle=(angle+pi)%(pi*2)

as for the power, I would subtract a little from the initial collision. Then use the same direction formula you have already been given.
Reply With Quote