I’ve got a scenario that I’m not too sure how to resolve.
Player humanoids are on top of a big cube part. I need to stop them walking off the edge. At the same time, I need them to be able to shoot off the ledge, including (effectively) straight down the side of the cube/building.
Pathing would respect this. So if I was at the top edge, and clicked at bottom, it wouldn’t attempt to walk/jump off the edge, but instead go another way (eg stairs or ramp etc).
I’ve considered having an invisible wall to stop them walking off, but this will stop the shooting.
Could I have a touch detector that if touched would limit movement in certain directions?
Can the raycasting be configured to ignore certain parts? eg the invisible wall?
Perhaps a shin height invisible wall, with jumping disabled? This will stop the player, but hand-held guns will shoot over it. Not ideal, as at some angles bullets will hit this wall.
thanks