Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Enabling PhysicsBody interpolation breaks WorldTransform component.

Discussion in 'Physics for ECS' started by Lordinarius, Jan 15, 2023.

  1. Lordinarius

    Lordinarius

    Joined:
    Sep 3, 2012
    Posts:
    93
    I hope this is not by design. I saw this issue when i tried to spawn an object above the character. My system update was right after physics step inside FixedStep Sim Group.

    upload_2023-1-15_17-6-50.png
     
  2. TheOtherMonarch

    TheOtherMonarch

    Joined:
    Jul 28, 2012
    Posts:
    490
    You need to override the behavior of BufferInterpolatedRigidBodiesMotion see BufferInterpolatedCharacterControllerMotion in the sample
     
  3. Pabi

    Pabi

    Joined:
    Feb 13, 2016
    Posts:
    36
    I'm trying to set LocalTransform but when I add a RigidBody, it doesn't work anymore. I think my problem is very close to your problem...

    Not sure what I'm suppose to do.