⚲
Class:
Entity
Lua
C++
Edit
Entity:SetVelocity
This method sets the velocity of an entity.
Syntax
SetVelocity
(number x, number y, number z)
SetVelocity
(number x, number y, number z, boolean global)
SetVelocity
(
Vec3
velocity)
SetVelocity
(
Vec3
velocity, boolean global)
Parameter
Description
velocity, (x, y, z)
velocity to set, in meters per second
global
if set to true velocity is in global space, otherwise local space is used
Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation