#Raycast is confusing me 😭

28 messages · Page 1 of 1 (latest)

stuck charm
#

Grey part is the position and orientation of the raycast and the red part is where its supposed to be shooting but the result of the ray is where the green part is

I dont get it

cedar vale
stuck charm
#
local originPosition = User.Character.Lance.Blade.Top.WorldCFrame.Position
            local direction = CFrameToOrientation(Beam.PrimaryPart.CFrame)
            print(originPosition)
            print(direction)
            local Result = game.Workspace:Raycast(originPosition, direction*500, Params)
            print(Result)
proud marten
#

One message removed from a suspended account.

stuck charm
proud marten
stuck charm
#

does that make sense

proud marten
#

One message removed from a suspended account.

stuck charm
#

Ill try that

stuck charm
#

Tried every possible rotation

#

wont change lookvector

proud marten
#

One message removed from a suspended account.

#

One message removed from a suspended account.

proud marten
#

One message removed from a suspended account.

stuck charm
#

alr

#

Ngl

#

I never knew upvector existed

#

thx it works like that

proud marten
stuck charm
#

Up down left right?

#

back front?

proud marten
#

One message removed from a suspended account.

stuck charm
#

oh no front is lookvector

proud marten
#

One message removed from a suspended account.

stuck charm
#

alr thx bro