⚲
Class:
Entity
Lua
C++
Edit
Entity::Translate
This method repositions an entity relative to its parent orientation.
Syntax
void
Translate
(const
Vec3
& translation, const bool global = false)
void
Translate
(const float x, const float y, const float z, const bool global = false)
Parameter
Description
translation, (x, y, z)
movement to apply to the entity
global
if set to false movement occurs relative to the parent space, otherwise world space is used
Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation