I’m trying to keep the mouse centered in the screen, but also keep it visible.
I know that cursorlockmode.locked makes the pointer invisible no matter what,
so if i can avoid this it would great.
i think i will have to code the mouse position in update, but i’m afraid of the cpu cost.
just looking for a place to start.
Second, what are you trying to achieve exactly? Displaying a locked mouse cursor would just keep it centered on the screen. I don’t think that’s what you want. Though, in case it is what you want, how about displaying a centered image instead. You don’t have to be afraid of the “cost” of calculating a position (or a thousand positions), it’s negligible (ask the profiler).
I AM trying to keep the mouse in the middle of the screen. I expect that the world would still move as i move the mouse. I want that weirdness in my game. if i can achieve it.
This does not seem to be a popular question, so i don’t even know where to start to set the mouse position in the middle of the game screen while still being able to look around the world.
Simply display a “cursor” image at the center. Yes, the real cursor will still be hidden but your players won’t notice the difference. Unless I have misunderstood what you want. In that case please elaborate.