Search Unity

How to make a fan behaviour in Unity

Discussion in 'Editor & General Support' started by zeeshan0026, May 21, 2013.

  1. zeeshan0026

    zeeshan0026

    Joined:
    Apr 1, 2013
    Posts:
    4
    I have an object e.g. cube. I want to release air from it like fan so that when other cubes come closer, it throws them away. What velocity,force etc I will need to do that?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    I'd say put a trigger in front of the fan, and apply a force pointing away from the fan every physics frame as long as any objects are in the trigger (using OnTriggerStay).

    --Eric