Search Unity

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:
    94
    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:
    866
    You need to override the behavior of BufferInterpolatedRigidBodiesMotion see BufferInterpolatedCharacterControllerMotion in the sample
     
  3. Pabi

    Pabi

    Joined:
    Feb 13, 2016
    Posts:
    48
    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.