#Raycast according to rotation?

1 messages · Page 1 of 1 (latest)

floral escarp
#

How do I adjust a raycast cast direction based on the rotation of something/a part, like say, a player?

left mulch
#

Cframe.lookvectir

#

.unit

floral escarp
#

is that based on camera or rotation of a part?

#

oh ok roation

#

but how do I get like say 4 sutds away from that lookat

stray ledge
#

you can get where its facing 1 stud away by cframe.Position + cframe.LookVector

#

to make it, lets say, 10, its cframe.Position + cframe.LookVector*10

floral escarp
#

thank you