#also show the Debug DrawLine or DrawRay

1 messages · Page 1 of 1 (latest)

dusk pawn
#

Sure

autumn socket
# dusk pawn

how do we know that's the same position as the raycast is using?

#

would be better just to reuse the same variables

#

to be 100% sure

dusk pawn
#

I don't quite follow? I see the line being traced directly below the character

autumn socket
#

yes but I want to make sure that your DrawRay call actually is drawing the same ray that your Raycast is using

#

if it's not, it's not helpful

#

it may even be confusing you

#

You have a raycastStart variable here

#

you should reuse this, even put the DrawRay right above this line of code

#

that will guarantee it's the same

dusk pawn
#

It's a bit tricky to do that. The code is running on an event being triggered via an animation

autumn socket
#

how is it tricky?

#

You literally just need to write the Debug.DrawRay on the line right before the Raycast

#

it doesn't matter what's triggering it

#

if that's your concern

dusk pawn
#

The duration. my bad. brain fart

#

2 sec

#

You sir are correct

#

The draw ray is complelty wack

#

I totaly assumed you where a dude. sorry about that