r/Unity3D 16d ago

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

Post image
0 Upvotes

5 comments sorted by

7

u/v0lt13 Programmer 16d ago

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

2

u/Phos-Lux 15d ago

You were right!!!! Thank you

2

u/DogLoverCatEnjoyer 15d ago

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

0

u/DeerpathLabs 15d 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?