Hi, everyone!
I have little trouble with my game made on unity 2022.3.20f1 with AC verison 1.81.7 if i'm not mistaking
I'm using cursor manager in my game to change standard cursors and walk cursor also
For my game i'm using P&C movement mechanic and navmesh cuz game genre is p&c
So, my location is made by stacking some prefabs amongst eachother, and by this i have only one navmesh grid for all movement because my location is pass-through without doors, or with teleport mechanic if it need.
And the issue is that my walk cursor and also my navmesh navigation see paths through the walls and that make a big problem. Tried to google this problem, check manual and all of this stuff, but not found solution for my problem. Can u please help me? In advance glad yall for helping. Pin screenshot to see what i mean by my problem.https://imgur.com/a/98TWCo3
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Mouse raycasts are blocked by Colliders on the Default layer. If you place your walls on this layer, or add invisible Trigger boxes where they are, they will prevent clicks through them into other rooms.
Hi again, i was a little bit busy on last days and continue working on project only yet.
I've added Test Wall object which is Cube with box collider and Is Trigger Checkbox is true on place where i need to solve this problem but it doesn't help me.
What i did wrong and what i can do else to solve it?
I pinned some images on imgur where i tried to screenshot everything that can be useful here: https://imgur.com/a/wAO59ZZ
Help me, please?
When clicking in the spot where the cursor is in your first screenshot, what do you want the reaction to be? That the Player moves within the room they're in, or doesn't move at all?
To keep them inside the room, set the Movement settings panel's NavMesh search direction to Straight Down From Cursor. The cursor isn't on the NavMesh in this spot, because of the Box, so this'll cause it to search downwards from this point until it finds the NavMesh.
To have them not move at all, set the NavMesh search % slider to zero. This'll prevent them from moving unless the cursor is over the NavMesh.
The Walk cursor will show at all times during gameplay, regardless of position, unless you have Only show 'Walk' Cursor when over NavMesh? checked in the Cursor Manager.