Hi
I have a problem with the player movement that I think might be related to raycasting and perhaps the camera position. In certain areas, when I click to move the player, the clickmarker doesn't appear at the location where I've clicked. It's particularly pronounced in this video.
https://drive.google.com/file/d/1OjMFtHZhHFhtiNbGC_dFCFducVZiJxa9/view?usp=sharing
In this video the floor panels are on the Navmesh layer, and the Player character has his ground set to Default and Navmesh. It works in most places normally, though frequently it's slightly out. This is one of the areas where it's very noticeable, but not the only one.
Here are my raycast settings
https://drive.google.com/file/d/1W7RWtaDEQ5Pz3zK4PJbtISszlrUXdAIi/view?usp=sharing
I'm using Unity 2022.3.4f1 and AC 1.79.1
Any ideas?
Olly
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I think I've found the issue. The area that was hard to click on was covered by a Trigger.
https://drive.google.com/file/d/1o9lSpROPHgARDXU0CPCyMCoQxCYtC3gg/view?usp=sharing
If I set the Trigger to the Ignore Raycast layer, then I can click in to it. Is that what I shoujld be doing?
Yes, that sounds right. A Trigger will still function on Ignore Raycast, and clicking it won't interfere with clicks to Hotspots or the NavMesh.