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!
Hopeless Forager
Can you survive the next ejection?
Status | In development |
Authors | arcane-ground games, TheOwl724, Lusenio Incidium |
Genre | Survival |
Tags | Action-Adventure, Horror, Singleplayer, Space |
More posts
- How do you make a computer within a computer game?Mar 01, 2024
- Issues when moving the ship between scenesMar 01, 2024
- How to handle itemsFeb 24, 2024
- Press and Hold interactions for playerFeb 24, 2024
- The Audio SystemFeb 17, 2024
- AI perception system reworkFeb 17, 2024
- Item system revamp and the struggles that came with itFeb 02, 2024
- Item Transfer Update and ExpansionFeb 02, 2024
- Problems with carrying items from scene to sceneJan 27, 2024
Leave a comment
Log in with itch.io to leave a comment.