Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vec2 r = pos - origin;
- angV += r.cross( gravity );
- ang += angV;
- pos = new Vec2( radius * cos( ang ), radius * sin( ang ) );
- pos += origin;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement