⚲
Class:
Entity
Lua
C++
Edit
Entity::SetVelocity
This method sets the velocity of an entity.
Syntax
void
SetVelocity
(const float x, const float y, const float z, const bool global = true)
void
SetVelocity
(const
Vec3
& velocity, const bool 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.