#Raycast

1 messages · Page 1 of 1 (latest)

icy mango
#

image relevant

stable copper
#

so you want this vector to be relative to the camera rotation?

icy mango
#

Yes

stable copper
#

making the Y value rotation.y doesnt really help you

icy mango
#

that's just debug

stable copper
#

you can multiply a quaternion by a vector to rotate it

#

o

icy mango
#

So I should multiply camera with The converted grid? or other way around?

stable copper
#

im still kinda confused as to what this is supposed to be doing

icy mango
#

Basicially shoot a grid of rays relative to the camera

stable copper
#

multiply your new Vector3 by the camera transform.rotation

#

that might do it