- Endless loop -
Development notes of Construct 2's plugins
Showing posts with label
distance
.
Show all posts
Showing posts with label
distance
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)