Objects Grabbed don't move on z axis

Hello,

I’m working through this course, and when I move my gargoyle with the grabber component the object moves towards the player but when I look up or down the object stays in the same Z plane.

I pasted my grab code in a screen-shot. It’s identical to the project at this point. I’m thinking there is a setting or something else that’s different?

Thanks!

2 Likes

And your tick function?

Here is my Tick Function. I’ve ended up just copying directly from the project files in the tutorial to try to figure this out.

Here is a screenshot of the fixed distance the grabbed object travels in the Z direction only when grabbed. So the fact it doesn’t update makes me think it is the Tick function too.

It’s hard to tell in that image, but I am looking up slightly and the Gargoyle object is off the ground and “grabbed”

Solved: My Grabber Scene component was attached to my root and not my camera object. Thanks!

4 Likes

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

Privacy & Terms