Retrofit U3D First person controller to fit cardboard+ Bluetooth handle control

Source: Internet
Author: User

First, in the U3d editor to delete the Fpscontroller game to the image of the camera;

Second, in the U3d editor, the Cardboardmain game is added to the sub-object like Fpscontroller;

Third, modify the script:

1. Delete the Rotateview method call in Firstpersoncontroller script;

2, in the Cardboardhead in the Updatehead, modify the Fpscontroller on the transform of the y-axis of the steering;

Above, the head steering data can be completed using the cardboard trace to control the y-axis steering of the first person game to the image, (due to the use of Cardboardmain, making the Cardboardhead directly usable)

3, in the Firstpersoncontroller script to find the control of the first person to move the place, with the joystick rocker key value substitution;

4, in Firstpersoncontroller feet to find the control jump place, with the right side of the lower key keys in the handle replaced;

You can use the joystick joystick to control the front and back movement of the first person character body, and use the buttons on the right side of the handle to control the first person character jumps;

Retrofit U3D First person controller to fit cardboard+ Bluetooth handle control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.