You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need some help with modifying the motor code to prevent a character from being only partially stuck to the wall. Ideally, the entire side of the box collider of the character would have to be contacting the wall in order for the player to stick, otherwise they would just fall.
Here's an example of what I'm talking about.
I guess the method to modify would probably be private CollidedSurface CheckSurroundings(bool forceCheck) but honestly that code is kind of daunting and its tough for me to step through and see what's going on. I'll start taking a deeper look at it tomorrow, but help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
A delayed response but you'll need to change how the motor does its ray casts. Right it'll cast the whole side and you'll want it to cast top and bottom and confirm both are true.
@cjddmut thank you for the response!
So am I correct that I would just have to change the logic from if top or bottom is true then stick to if top and bottom are true then stick?
Any idea what part of the code that I'll have to modify to change this? I'm having trouble finding the method where raycasts are performed.
I need some help with modifying the motor code to prevent a character from being only partially stuck to the wall. Ideally, the entire side of the box collider of the character would have to be contacting the wall in order for the player to stick, otherwise they would just fall.
Here's an example of what I'm talking about.
I guess the method to modify would probably be
private CollidedSurface CheckSurroundings(bool forceCheck)
but honestly that code is kind of daunting and its tough for me to step through and see what's going on. I'll start taking a deeper look at it tomorrow, but help would be greatly appreciated.The text was updated successfully, but these errors were encountered: