Ok, next evolution of mouse follow script - no lasers, no scene.my variables.
Script for hinge bendTarget:
It's phunlet-safe but script killed (need to be re-entered) on clone/copy-paste.
Script for hinge bendTarget:
- CODE: SELECT ALL
{
v := app.mousepos - (readable((Scene.entityByGeomID((readable(owner)).geom1)))).pos;
(v(0) < 0 ? math.pi : 0) - math.atan(v(1) / v(0))
}
It's phunlet-safe but script killed (need to be re-entered) on clone/copy-paste.
No hay comentarios:
Publicar un comentario