ursina icon indicating copy to clipboard operation
ursina copied to clipboard

Weird FirstPersonController issue on Mac

Open s6maelstrom opened this issue 1 year ago • 3 comments

I was checking out first person and 3D environments and setup a small plane and a quick FIrstPersonController() to check out, but it doesn't seem to be working properly.

Mouse input seems unresponsive, wiggly and tends to snap back constantly.

So i thought about printing the mouse.velocity value from the mouse.py module in the update function, so that the VSC builtin console could give me a log of the velocity values, and the results only added to the confusion tbh

Can someone help me out?

from ursina import *
from random import uniform
from ursina.prefabs.first_person_controller import FirstPersonController

window.borderless = False

app = Ursina()

Sky()
player=FirstPersonController() ###not working properly - chcking mouse.py ltr
ground=Entity(
    model='plane', scale=(100, 1, 100), color=color.gray, texture="white_cube", texture_scale=(100, 100), collider="box")


def update():   ###prints mouse velocity in VSC console
    print(mouse.velocity)

app.run()

EDIT 1 I've only now seen other posts addressing the same issue on MacOS as well. At this point I'm fairly positive this has to do with MacOS itself

EDIT 2 Had a friend of mine on windows to build and try out this little FPC demo and it seems like it works properly on his machine, so this is definitely 100% a mac issue

s6maelstrom avatar May 29 '23 17:05 s6maelstrom

I have same error on Arch Linux, my mouse is constantly clipping up. Maybe it has to do something with DWM.

youshitsune avatar Aug 13 '23 05:08 youshitsune

I have same error on Arch Linux, my mouse is constantly clipping up. Maybe it has to do something with DWM.

Uhhhh... DWM? Windows uses that. Do you mean something like KDE or XFCE, or X11/Wayland?

xandaaah avatar Nov 30 '23 13:11 xandaaah

I don't think Windows is using it. https://dwm.suckless.org

Edit: I've fixed it a long time ago, fix was setting window.borderless = False

youshitsune avatar Nov 30 '23 13:11 youshitsune