cancel
Showing results for 
Search instead for 
Did you mean: 

Grabbable item not staying with hand on Character movement

pjenness
Rising Star
Hiya

Im using the grabable script to pick up items.
THey seem to pickup and lock to the hand well when just doing touch hand movement.

But when I introduce character movement (walking) they don't catch-up..they seem to do a slow lerp style movement to catch up.

Usually to alleviate this you can parent game objects to he player controller , however if I do that the grabbable item seems to get multiple movements, and if I walk forward the item shoots ahead of the player.

Anyone got past this issue?

Cheers

-P

Drift VFX Visual, Virtual , Vertical Want 970GTX on Macbook for good FPS? https://forums.oculus.com/viewtopic.php?f=26&t=17349
5 REPLIES 5

Glightgames
Protege
The Grabbable script makes objects follow the hand, it doesn't child them.

Make sure your hands are children of your Avatar, try playing with script execution orders to minimise it.

JulianB
Protege
@pjenness Hey Paul there's a toggle on the right and left hand prefabs that solves this problem for me? Look for parentHeldObject near the top of the hand script component. I'm messing with holding objects and travelling in world now and this fixes the stuttering of held objects when locomoting for me.
-j www.julianbutler.com Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels come.

pjenness
Rising Star


The Grabbable script makes objects follow the hand, it doesn't child them.

Make sure your hands are children of your Avatar, try playing with script execution orders to minimise it.


Hiay
yea the hands are children of my Character controller so they are smooth.
It was the grabbable that is the problem... it lags..and if I parent it , th motion freaks out
Drift VFX Visual, Virtual , Vertical Want 970GTX on Macbook for good FPS? https://forums.oculus.com/viewtopic.php?f=26&t=17349

pjenness
Rising Star

JulianB said:

@pjenness Hey Paul there's a toggle on the right and left hand prefabs that solves this problem for me? Look for parentHeldObject near the top of the hand script component. I'm messing with holding objects and travelling in world now and this fixes the stuttering of held objects when locomoting for me.


OH sweet... will try thanks!

-P
Drift VFX Visual, Virtual , Vertical Want 970GTX on Macbook for good FPS? https://forums.oculus.com/viewtopic.php?f=26&t=17349

pjenness
Rising Star
Works!    Thanks!!!
Drift VFX Visual, Virtual , Vertical Want 970GTX on Macbook for good FPS? https://forums.oculus.com/viewtopic.php?f=26&t=17349