chicagobob123 Posted July 13, 2016 Share Posted July 13, 2016 I am trying some of my stuff on a phone. My Note 5 is currently my test bed. I just put in the VirtualJoysticksCamera and the joysticks did not show up no error either ? I have read there is something called HandJS should I use that instead? So I shrugged my shoulders and said lets try VR its more fun anyway. I just starting experimenting with SamsungGear, and a joystick. (Moga) All I have done is switch from the FreeCamera to the WebVRFreeCamera and disable the auto Samgsung startup with Package Disableer Pro ( a 99cent must have) I have issues in movement Using the Moga in B mode HID I can only use the game pad, none of the joysticks work. I imagine you can attach them somehow. And the speed of movement is way too fast. Is there a way to slow that down and how do you get the joysticks to work. Thanks, Bob Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 13, 2016 Share Posted July 13, 2016 hey! You need to reference either hand.js or jQuery PEP to get pointer events For speed of movement, you can try to play with camera.gamepadAngularSensibility and camera.gamepadMoveSensibility Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted July 14, 2016 Author Share Posted July 14, 2016 I imported the hand.js but alas no circles show up. By using my thumbs at the spots where the circles should be it seems to work. Where should I start to look for those circles? webGLmmk 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 14, 2016 Share Posted July 14, 2016 I guess this should be your starting point: https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.virtualJoystick.ts#L90 @davrousdid this implementation so he may be more helpful than me Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted July 14, 2016 Author Share Posted July 14, 2016 Started there ended up in this function VirtualJoystick.prototype._drawVirtualJoystick = function () { The touch.x and touch.y are undefined. Also there are to beginPath() in the else statement and one closePath() Anyone know where the touch.x and touch.y get set? That was tough to find VirtualJoystick.vjCanvasContext.arc(touch.x, touch.y, 40, 0, Math.PI * 2, true); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.