Progetto H — API Reference API & Scripting Documentation
Static function Shared

NanosMath.LocalToWorld

Takes a local position and rotation relative to an actor, applies the actor's location, rotation, and scale to compute world-space location and rotation.

Syntax

Lua
NanosMath.LocalToWorld(local_location, local_rotation, actor)

Parameters

Name Type Default Description
local_location Vector The local location to convert
local_rotation Rotator The local rotation to convert
actor Actor The actor whose transform defines the local space

Returns

  • Vector the location in world coordinates
  • Rotator the rotation in world coordinates