Skip to content

Porps with Rigidbody and Gravity dont bekome kinematic on pickup if BasisObjectSyncNetworking is active #629

@Mr-Zero88

Description

@Mr-Zero88

Describe the bug?

Then a prop is Pickup Interactable and has gravity; it slowly starts falling if in a network session.

Steps to Reproduce

Working:

  • Spawn a prop with Pickup Interactable and gravity.
  • Grab it on a local session. (It works as expected.)

Broken:

  • Join a server
  • Spawn a prop with Pickup Interactable and gravity.
  • Grab it on a local session.
    • It slowly starts falling.

The expected behavior

It should not override the isKinematic flag on the Rigidbody like it would without a network session.

Screenshots

No response

Build Info

latest developer in editor

Log Files

No relevant logs

Additional Context

BasisObjectSyncNetworking.ControlState() currently forces isKinematic = false for the local owner, which overrides pickup behavior.

ownership transfer calls ControlState() after pickup starts, and that currently forces isKinematic = false, undoing KinematicWhileInteracting.

Possible fix

Only force non-kinematic when locally owned and not currently interacting, so pickup kinematic state is no longer overwritten during ownership transfer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions