⚲
Class:
Entity
Lua
C++
Edit
Entity:SetVelocity
This method sets the velocity of an entity.
Syntax
SetVelocity
(number x, number y, number z, boolean global = true)
SetVelocity
(
Vec3
velocity, boolean global = true)
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 © 2024 Ultra Software.
All rights reserved.