- Endless loop -
Development notes of Construct 2's plugins
Get angle and distance between two points
Distance
var distance = cr.distanceTo(px0, py0, px1, py1);
Angle
var angle = cr.angleTo(px0, py0, px1, py1); // in
radian
angle = cr.to_clamped_degrees(angle); // radian to degree
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment