Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nipple-controls] rotation joystick only and move forward #428

Open
vincentfretin opened this issue Jul 24, 2023 · 0 comments
Open

[nipple-controls] rotation joystick only and move forward #428

vincentfretin opened this issue Jul 24, 2023 · 0 comments

Comments

@vincentfretin
Copy link
Member

On this game https://animals.bio it uses a single virtual joystick that is actually the rotation virtual joystick (see #425) and it just moves forward when you touch the screen. I added some options to nipple-controls to disable one joystick or the other, see usage https://github.com/c-frame/aframe-extras/tree/master/src/controls#usage
and schema

mode: { default: "dynamic", oneOf: ["static", "semi", "dynamic"] },
rotationSensitivity: { default: 1.0 },
moveJoystickEnabled: { default: true },
lookJoystickEnabled: { default: true },
sideMargin: { default: "30px" },
bottomMargin: { default: "70px" },
moveJoystickPosition: { default: "left", oneOf: ["left", "right"] },
lookJoystickPosition: { default: "right", oneOf: ["left", "right"] },

so enabling only rotation is nipple-controls="moveJoystickPosition: false"
but an option is missing to also move forward like moveForwardOnTouch:true (false by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant