Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Interacting with part of the Fire Extinguisher in Unity

Discussion in 'Getting Started' started by mykassem, Dec 2, 2019 at 5:55 AM.

  1. mykassem

    mykassem

    Joined:
    Monday
    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:
    8,319
    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?