Use GrabAngle on v6.0 and above? #1302
-
Hi, i just updated from v5.0.0 to v6.1.0 and cant get my head around an alternative for GrabAngle. I used to compare hand.GrabAngle with a float to check if the hand is grabbing right now. Thanks in advance and kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @MarMi4! Have you tried using GrabStrength? It provides a value between 0 and 1 where 1 is fully grabbed and 0 is not grabbed at all, it may serve as easier to determine when the hand is grabbing.... (I would recommend using something like If not, here is a similar but not exactly the same method for calculating 'grab angle':
|
Beta Was this translation helpful? Give feedback.
Hi @MarMi4!
Have you tried using GrabStrength? It provides a value between 0 and 1 where 1 is fully grabbed and 0 is not grabbed at all, it may serve as easier to determine when the hand is grabbing.... (I would recommend using something like
if(hand.GrabStrength > 0.8f)
for a grab so it has a little cushion)If not, here is a similar but not exactly the same method for calculating 'grab angle':