Bounce is working better, but it's still getting hung up on the edges (multiple green circles), so something is wrong. Also, the angle is still off.


Anyhow, the is the relevent code that got me here. (-VR) being the key part.
WorkingAngle = VectorRay.getDirectedAngle(-VR);
VR.angle = WorkingAngle;

Previous      Brett Code Index    Next in Series


OctoWars Project
Copyright © 2013 Brett Paufler