Issues with interaction raycast and player model offset


Hey everyone, I'm back here for a short update.

I wanted to talk about two kinda similar problems I got during the development of this latest build. I was working on the player character, and had just added an interaction system so items could be picked up, and then I noticed how the player could not easily interact with objects unless it was basically on top of them. Similar to that, I noticed the player's position was getting offset after jumping, more specifically, the model would move backwards while the player object stayed in the right place.

After some much needed heads up from fellow dev Lusenio, I found the solution for both of these... even though they were pretty simple in hindsight: basically, for the pickup thing, I was using the player's position for the raycast instead of the camera (that would show what it was facing) and for the offset, I couldn't have a Rigibdbody and Character Controller in the same object... which is a thing I knew from previous projects of mine, but I completely forgot when starting the player in this one... guess I was rusty.

Anyway, so now the player is working fine movement and functionalitywise.

I'll try to keep you people updated, Tchau!

Leave a comment

Log in with itch.io to leave a comment.