Working on a character controller / physics right now in Unity and I have a problem that is driving me insane:
While going up slopes, I perform a second boxcast from an elevated position (how much the character will ascend the slope, red line) to check if anything else will be in the way of the player before I move them there. This boxcast is not giving me an accurate distance (green line from the bottom right of the box) from the same slope which causes the movement to be reduced (blue line)!
I can't seem to find any issues with how I'm doing this so I might just chalk it up to boxcast being inaccurate and add a check for the colliding object's instanceID to ensure its not just the same slope or something.
Edit: I just tried raycasting from the corner of the box instead and found that the distance reported was exactly right. What a crying shame, I really prefer to Boxcast. Guess I'll switch over to a multi-ray based system instead.
I kind of like where the readout is situated already! Why is the deadsuit cap'd in one spot but not the other though?
While going up slopes, I perform a second boxcast from an elevated position (how much the character will ascend the slope, red line) to check if anything else will be in the way of the player before I move them there. This boxcast is not giving me an accurate distance (green line from the bottom right of the box) from the same slope which causes the movement to be reduced (blue line)!
I can't seem to find any issues with how I'm doing this so I might just chalk it up to boxcast being inaccurate and add a check for the colliding object's instanceID to ensure its not just the same slope or something.
Edit: I just tried raycasting from the corner of the box instead and found that the distance reported was exactly right. What a crying shame, I really prefer to Boxcast. Guess I'll switch over to a multi-ray based system instead.
I made a new level up event/fanfare to replace the placeholder I'd had standing in since the very beginning.
I wanted to do something that was unmistakable while not being too intrusive or in the way.
https://www.youtube.com/watch?v=SiqZcH513JI&feature=youtu.be
I think I'm more or less happy with it, but I'm still not sure where I want the side readout to go. Stay in the middle or tuck it away up top near the hud?
I kind of like where the readout is situated already! Why is the deadsuit cap'd in one spot but not the other though?
