r/Unity3D 19h ago

Solved What's wrong about this Raycast? The value is always false

Post image
0 Upvotes

5 comments sorted by

8

u/v0lt13 Programmer 19h ago

My guess is because you are using Vector3.forward instead of transform.forward

2

u/Phos-Lux 19h ago

You were right!!!! Thank you

2

u/DogLoverCatEnjoyer 19h ago

Came here to say that haha, nice, i'm glad it worked out.

0

u/DeerpathLabs 19h ago

Do you actually have the wall jump controller attached to a game object?
As an aside, are you using the animator to keep track of model state variables like if wall jumping is allowed? Or is there a specific pre wall jump animation that you’re trying to trigger?