当前位置:网站首页>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
边栏推荐
- 如何防止商场电气火灾的发生?
- Application of acrelcloud-6000 secure power cloud platform in a commercial plaza
- go 递归无限极分类
- Demand and business model innovation - demand 11 - overview of demand analysis
- 1 minute to understand the essential difference between low code and zero code
- Special information | liquor (Baijiu, beer, wine)
- ssh公钥登录失败报错:sign_and_send_pubkey: no mutual signature supported
- Using SSH public key to transfer files
- Requirements and business model analysis requirements 13 data modeling
- Intel Galileo Gen2 development
猜你喜欢

【点云压缩】Sparse Tensor-based Point Cloud Attribute Compression

2020-12-07

Comment prévenir les incendies électriques dans les centres commerciaux?

Solutions to errors in ROM opening by MAME

架构入门讲解 - 谁动了我的蛋糕

Application of ard3m motor protector in coal industry

The program actively carries out telephone short message alarm, and customizes telephone, short message and nail alarm notifications

cupp字典生成工具(同类工具还有crunch)

【点云压缩】Variational Image Compression with A Scale Hyperprior

2020-12-10
随机推荐
Go recursive infinite classification
微信小程序项目实例——体质计算器
Infinite loop judgment method;
2020-12-06
Solutions to errors in ROM opening by MAME
Comparison of scores
Depth copy
跨域有哪些解决方法?
ZABBIX notes: 6.0 lts source code installation
errno: -4091, syscall: ‘listen‘, address: ‘::‘, port: 8000
Recommend 6 office software, easy to use and free, double the efficiency
2020-12-17
Red's deleted number
Inverted string - two solutions
Calculus review 2
Cupp dictionary generation tool (similar tools include crunch)
Demand and business model innovation - demand 11 - overview of demand analysis
One article to show you how to understand the harmonyos application on the shelves
[DFS "want" or "don't"] seek subsets; Seeking combination
Intel case