Method WorldObject:GetAngle [-] [+]

Returns the angle between this WorldObject and another WorldObject or a point.

The angle is the angle between two points and orientation will be ignored.

Synopsis

dist = WorldObject:GetAngle( obj )

dist = WorldObject:GetAngle( x, y )

Arguments

WorldObject object
See method description.
number x

Valid numbers: all decimal numbers.

number y

Valid numbers: all decimal numbers.

Returns

number angle

Angle in radians in range 0..2*pi.

Valid numbers: all decimal numbers.

Generated on 11/04/2018
©2016 - Eluna Lua Engine