Forum Discussion
xlar54
8 years agoHonored Guest
Pool stick - how to attach to both hands?
Im using Touch controllers. Id like to attach a pool stick to both hands, such that I can move hands around, but the stick will pivot and stay connected to the controllers. Obviously i can connect it to one hand, but how would I attach to both?
1 Reply
- xlar54Honored Guestdisregard. what i did was place the stick outside of the hands, and attached this script to the stick. Target is the left hand, and controller is set to right hand in the UIusing UnityEngine;using System.Collections;public class StickScript : MonoBehaviour {//values that will be set in the Inspectorpublic Transform Target;public OVRInput.Controller Controller;// Update is called once per framevoid Update () {transform.localPosition = OVRInput.GetLocalControllerPosition(Controller);transform.LookAt(Target);}}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 6 months ago
- 1 year ago