Search Unity

Adding turbulance to force? Create force in cone shape?

Discussion in 'Editor & General Support' started by DaveyJJ, Jul 25, 2005.

  1. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    How would you add turbulance to a force? And can you restrict force to a cone-shaped area rather than items themselves? Suppose you wanted your force only within the area of flames from the dragons mouth (and for a short distance around that). Can this be done?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    You can use a trigger for this.

    See: /Users/Shared/Script Tutorial/ForceField.unity

    If you want to add turbulence, you can modify the script to add forces more randomly. The Random class has a lot of utility functions for generating random numbers and Random vectors.

    http://www.otee.dk/Documentation/ScriptReference/Random.html
     

    Attached Files: