New: VRTK Shu double handle: hands, both hands, zoom

First, the basic configuration

Basic Configuration Address

 

 

Two, three, two hands to operate the linkage mechanism provided VRTK

SwapControllers: a hand holding a current object in one hand grasping come to realize the effect of the hands of the object attached to just get involved in.

ControlDirection: two hands, determined orientation of the object, such that operation of a more natural object

AxisScale: zoom control object by the distance between the two hands, a direction

 

Note: Replace the linkage mechanism, do not delete objects on components, direct and efficient configuration, fast configuration script will delete unused for us, add a script needs.

 

1, SwapControllers: hands

a, select an object directly to a default configuration.

b, to add the object collider, and transferred into a suitably sized

c、Enjoy~

 

2, ControlDirection: both hands

Similar hand guns. Note the following points: basic configuration, set the rotation point

a, hands rotation point provided:

For example, in order to position the gun trigger pivot point.

1), the new object is empty, the Icon to visualize its position on the handle position.

2), the gun is set to the empty object sub-objects.

Now when the set after a hand grabbed the trigger position, the other hand also to seize the object, rotating, rotating the object will rotate the point. (When this rotation is not provided, which places the center point of rotation of the gun body. Rotator subsequent objects do not change position, rotation of the parent object to the whole).

b, configure two gripping linkage setting

1), select the object space, SetupObject - SecondaryGrabAttach - ControlDirection, other default configuration, and finally to the addition of a suitable size Collider empty object.

2), grasping point set.

Handle new empty object space object Gun (adjusted to the appropriate posture), assigned to the property VRTK_ChildOfControllerGrabAttach RightSnapHandle.

Enjoy~

 

3, AxisScale: scale objects in the object corresponding axis scaling.

Effect: the object such as the right hand hold, back and forth left-drag Grab,

1), select the object space, SetupObject - SecondaryGrabAttach - AxisScale, other default configuration, and finally to the addition of a suitable size Collider empty object.

2), attribute explain

UngrabDistance : When the controller of the object exceeds 1m, the object departing from the controller

LockXAxis : Lock X-axis, X-axis is not scaled

UniformScaling : no matter what the handle axis scaling, the object will be XYZ axis scaling.

Enjoy~

 

Published 320 original articles · won praise 77 · views 170 000 +

Guess you like

Origin blog.csdn.net/weixin_38239050/article/details/103394232