ArmandA
Normal2mo ago
9 replies
Armand

I am having trouble with item based ownership

In our game, we have items that mainly driven via XRGrabInteractable.cs and RealtimeTransform.cs and can be held by the player. It works 90% the way I want it too, but, I have edges case where items that are instantiated can sometimes become 'suspended' in air. These items are spawned via real-time instantiation and utilize real-time pooling.

This item 'suspended' in air bug can also be triggered if players are rapidly passing items back and forth to each other, which leads me to believe it is an ownership issue.

When the bug occurs, the player who owns the realtime can grab the item and move it around normally. When they let go of it, the item stays either static in air, or floats towards the direction of the release. On the clients who do not own the item in that moment, the item doesn't move at all.
Was this page helpful?