当前位置:网站首页>Steamvr--- grab objects
Steamvr--- grab objects
2022-06-12 03:08:00 【Nangongming】
hot tip : This series is based on Unity 2020.3.26,SteamVR Unity Plugin - v2.7.3 (sdk 1.14.15)
Blog address of this series : Portal
Create one randomly in the scene cube, Hang them separately :Collider( Hang it on a sub object )、Rigidbody、Interactable、Throwable、VelocityEstimator、SteamVR_Skeleton_Poser
Interactable
hideHandOnAttach: Hide the hand model when grasping , Release display
hideSkeletonOnAttach: Hide the skeletal part of the hand when grasping
hideControllerOnAttach: Hide controller while grabbing
useHandObjectAttachmentPoint: Whether to use hand The object connection point specified by the script
handFollowTransform: Whether the hand model is locked to follow the object
highlightOnHover: When the hand covers / Whether the object is highlighted when touching 
Throwable
attachmentFlags: The way objects are grasped , You can choose more , Use the default settings when normal
SnapOnAttach: The object will match hand The script specifies the connection point objectAttachmentPoint The location of
DetachOthers: When you have objects on your hands , Then grab the object, and the object in your hand will be separated
DetachFromOtherHand: If you are currently held by your left hand , When the right hand goes to grasp, it will be caught by the right hand
ParentToHand: Set the parent object of the object to hand
VelocityMovement: The object will try to move to match the position and rotation of the hand . Automatic matching ? I don't know how to use
TurnOnKinematic: Will open Rigidbody Of isKinematic, Change the mode of collision detection
TurnOffGravity: Will turn off Rigidbody Of useGravity
AllowSidegrade: Unknown 
VelocityEstimator
Used for setting up Rigidbody Of velocity Follow angularVelocity, It is not necessary to hang up the script
SteamVR_Skeleton_Poser
You can set objects 、 The position and rotation of the hand , It is not necessary to hang up the script
CurrentPose: The configuration file 
SteamVR_Skeleton_Pose
position: The position of the object after grasping , Relative to hand
rotation: Rotation of the object after grasping , Relative to hand
bonePositions: Hand bone position
boneRotations: Hand bone rotation 
explain
1. Default GrabPinch(Trigger Trigger key ) And GrabGrip Can grasp objects , No script can be set on the panel , It is written in the underlying code that these two keys can be used , There are many places to call , It is not recommended to change the script directly
resolvent : stay SteamVR–>> equipment –>> Controller settings , Set the trigger key in the key setting GrabPinch Delete ( I am using Oculus The display of the device handle is different )
2. To grab an object, you need to press the button all the time , But there will be the need to click to grab the object and then click to let go , I don't know how to solve it yet , Friends who know me are welcome to comment or send me a private letter
边栏推荐
- Maya foreground rendering plug-in Mel scripting tool
- Recommend 6 office software, easy to use and free, double the efficiency
- 2020-12-17
- [Business Research Report] Research Report on super automation technology and application (2022) -- download link attached
- AcrelCloud-6000安全用电云平台在某商业广场的应用
- Final summary of addition, deletion, modification and query - 2.2 (knowledge points in mapper.xml)
- Infinite loop judgment method;
- PHP life cycle and swoole life cycle
- Machine learning - dimensionality reduction (data compression, data visualization)
- Unity3D中DrawCall、Batches、SetPassCall
猜你喜欢

WPS表格 学习笔记 - 高亮显示重复值

Maya Front Office Rendering plug - in Mel script Tool

string manipulation:

Comparison of scores

2020-12-07

Machine learning - dimensionality reduction (data compression, data visualization)

Requirements and business model analysis requirements 13 data modeling

Apache simple honeypot

2020-12-10

What is the core of Web3?
随机推荐
alertmanager告警配置
[point cloud compression] variable image compression with a scale hyperprior
【鸿蒙】 使用定时器做一个简单的抢红包小游戏
maya前臺渲染插件mel脚本工具
大整数的加与乘;
Special materials | household appliances, white electricity, kitchen electricity
WPS table learning notes - highlight duplicate values
Go 语法 变量
字符串处理:
[digital signal processing] correlation function (energy signal | cross correlation function of energy signal | autocorrelation function of energy signal)
AcrelCloud-6000安全用电云平台在某商业广场的应用
Laravel 8 selects JWT for interface verification
Sparse tensor based point cloud attribute compression
What are the solutions across domains?
Intel case
Apply concentrated load to nodes in batch in ABAQUS
安科瑞抗晃电产品在河北某化工项目的应用
What is the difference between the gin framework of golang and the various methods of receiving parameters and various bindings?
[Business Research Report] forward looking report on urban renewal and development in China in 2021 - download link attached
Comparison of scores