Raycasting does not work when characters velocity is going up

So I have a moving platform which goes up to 50 velocity speed. The raycast I perform is from the camera hitting towards the mouse cursor position onto another part which is on the character (think of the part as a watch on the char’s wrist).

The problem is that when the character is going up in velocity with the platform, the raycast seems to not hit the target part anymore. Any ideas or tips on what I can do?

I tried increasing the ray cast range up to 10000, still didn’t work.

Might there be something in the way like an accessory or a wonky hitbox. :thinking:
I’d try using RaycastParameters and only look for the part you are trying to look for.

1 Like

I have raycast params to exclude everything but the part I have on the character. So i’m not sure if that’s the issue here.

Problem fixed. It appears that I had my camera adjusted and binded to render step, once I set it to heartbeat it worked fine.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.