get forward coordinates||doc135453

September 20, 2022

Format

 Entity:getFrontPos(dis, isFoot, bCenter) 
  • The class to which the function belongs:Entity

Description

Get the coordinates of the front of the object.


Parameters

Variable name type Description
dis float distance ahead
isFoot boolean Whether it is based on the feet
bCenter boolean Whether to take the middle value


Value Returned

type Description
Vector3 front coordinates


Code Samples

on the client side of the objectmount script, get the coordinates of the front of the object.

local pos = this:getFrontPos(2,true,true)
print(pos)