#And lets make a quick thread for this

1 messages · Page 1 of 1 (latest)

sour breach
#

so in start? what about the oldposition = transform.position? also in start?

sour geode
#

Dont do in start

#

Ignore start

sour breach
#

it gives red line

sour geode
#

Show it all

sour breach
sour geode
#

Oml

#

U just create the variable, dont set it yet

#

U need to set it in update

sour breach
#

hmm the vector3 direction?

sour geode
#

Yes

#

Create it outside update
Set its value inside update

sour breach
sour geode
#

Omfg

sour breach
#

sorry im a little confused

sour geode
#

Bout to give up

#

On phone as well which makes this hell

#

Vector3 oldPosition
Vector3 direction

void Update
oldPosition = transform.position

transform.position = whatever
direction = transform.position - oldPosition

#

Got it?

#

@sour breach

sour breach
#

im so sorry but what does taht whatever means?

sour geode
#

Idk what u set the position to so

sour breach
#

ok thank you so much

sour geode
#

Now u can grab the direction in whatever line u need