I am trying to control a sphere with a virtual joystick, I have tried:
SetObject3DPhysicsangularVelocity(player,GetVirtualJoystickX(1),0,GetVirtualJoystickY(1),100)
but on running everything disappears from view,I do have the camera 'looking at' the sphere
here is a video of it running using just keys running within a custom editor:
I could of course just use:
if GetVirtualJoystickX(1)>0
SetObject3DPhysicsangularVelocity(player,0,0,200,200)
endif
if GetVirtualJoystickX(1)<0
SetObject3DPhysicsangularVelocity(player,0,0,-200,200)
endif
if GetVirtualJoystickY(1)<0
SetObject3DPhysicsangularVelocity(player,-200,0,0,200)
endif
if GetVirtualJoystickY(1)>0
SetObject3DPhysicsangularVelocity(player,200,0,0,200)
endif
But the movement of what is meant to be a rolling ball aint smooth enough
Hail to the king, baby!