Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question helicopter physics

Discussion in 'Physics' started by splundge, Jan 18, 2024.

  1. splundge

    splundge

    Joined:
    Dec 29, 2021
    Posts:
    24
    is there a good tutorial somewhere (for the most recent version of unity) that demonstrates or explains how to simulate a helicopter floating in the air? (and tilting left/right to strafe)

    note:
    - it should hover at a constant height while the player is using it (the player cannot change the height)
    - when damaged it should fall out of the sky under regular physics forces
     
  2. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    2,034
    There's dozens of ways of doing this, involving different degrees of physics simulation.

    This is a simple one, that you can tweak to limit the height to a constant value:
     
  3. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    429
    Well looks like you don't need to simulate a helicopter. You can set the rigidbody to kinematic and move it like anything else. then when dead disable iskinematic.