Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Interacting with part of the Fire Extinguisher in Unity

Discussion in 'Getting Started' started by mykassem, Dec 2, 2019.

  1. mykassem

    mykassem

    Joined:
    Dec 2, 2019
    Posts:
    1
    Hello,

    I'm trying to make part of a fire extinguisher (the hose) interactive. I found one model in asset store, but now i'm stuck, i'm unable to make the hose interactive. For example, i want the user to be able to carry the cylinder and get the hose to extend it towards a fire.


    Thanks,
    Mona Kassem
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    That's going to be pretty hard to do in general. You would need a rope/chain simulation, with a high stiffness to represent the rather stiff hose of the extinguisher. And you'd need to deal with what happens when the user tries to stretch the hose farther than its length, etc.

    However, maybe you don't need to be general. Can you just create an animation of the hose/nozzle extending, and play that when the user indicates in some way that they want to do this?