Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Simulate One Single Rigidbody/Reference For Rigidbody Physics

Discussion in 'Physics' started by Jawsarn, Oct 30, 2018.

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    15
    So I want to basically use Physics.Simulate(); on one single Rigidbody. This ties into server/client reconciliation, where I reset an object with position, velocity etc. received from server and applying stored inputs and fastforward the physics of that object to get to the current estimated position.

    I haven't found any method of this yet, but if there exist that would solve all my problems.
    If not, is there any reference code for updating a rigidbody (move, drag, angular etc) so I can use the same code that goes into PhysX(?) ?

    Thanks for any tips and trix!
     
  2. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    15
    Trying to do this on my own, anyone have any code example how to apply angular velocity? Using euler angles doesn't seem to work so well for me.