【VRTK】【VR Development】【Unity】8-Interactive Objects

Insert image description here

Download course supporting learning resources

https://download.csdn.net/download/weixin_41697242/88485426?spm=1001.2014.3001.5503

【Overview】

Previously we just used a simple block as an interactable object. In fact, interactive objects can have many detailed settings, including which point to grasp the object, specifying the direction of the grasp, specifying Secondary Action to allow interchange of grasps with two hands, grasping with both hands, using both hands to change the size of the object, etc.

【Pick up objects】

In order for an object to be picked up, it must be made interactive.
An interactive object can perform two different actions depending on the order in which it is interacted with. The first interactive action is called Primary Action, and the second is Secondary Action. You can determine whether a second Action is needed in the Interactable Facade component.
Select the white square under Environment in the Hierarchy and double-click to gain focus. Scroll to the Interactable Facade component section to see the main and secondary actions.
The current main action is set to: Interactable Grab Action Follow, which means that it will follow the main body after being picked up. Effects of other options:

  1. If set to Interactable Grab Action None, it means it cannot be picked up.
  2. Set to Custom,

Guess you like

Origin blog.csdn.net/weixin_41697242/article/details/134500368