nanos world API Reference Unofficial documentation
Static function Shared

NanosMath.RelativeTo

Calculates the location and rotation relative to an actor

Syntax

Lua
NanosMath.RelativeTo(location, rotation, actor)

Parameters

Name Type Default Description
location Vector The location of the new system
rotation Rotator The rotation of the new system
actor Actor The actor to be translated to the new system

Returns

  • Vector the location relative to the actor
  • Rotator the rotation relative to the actor