首页>itarticle>controller in steamvr A custom hand model Reference
controller in steamvr A custom hand model Reference
admin11月 13, 20200
Types of input in SteamVR, receive input from HTC Vive and taking action with this input. Adding custome hand models to controller and creating your own animation when certain buttons is pressed down.
How to change the controller model with a custom hand model?
Just delete the original hand model under controller(left) and controller(right) in the hierarchy window, and replace it with your own hand model.
How to add animation when controller’s buttons are pressed down?
The most simple way is to add trigger parameters into your hand model’s animator, make several transactions between two status and set the transaction condition with the trigger being set.
controller_hand_animation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
public class controller_hand_animation : MonoBehaviour {
近期评论