C# Class ProjectStorms.Vortex

Vortex - basically a physics black hole - if a rigidbody is inside the trigger, it is dragged towards the gameobject's center.
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project

Public Properties

Property Type Description
maxGravityPull float
rotateForce float

Public Methods

Method Description
Attract ( GameObject attractedBody ) : void
FixedUpdate ( ) : void
OnTriggerEnter ( Collider other ) : void
OnTriggerExit ( Collider other ) : void

Method Details

Attract() public method

public Attract ( GameObject attractedBody ) : void
attractedBody UnityEngine.GameObject
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other UnityEngine.Collider
return void

OnTriggerExit() public method

public OnTriggerExit ( Collider other ) : void
other UnityEngine.Collider
return void

Property Details

maxGravityPull public property

public float maxGravityPull
return float

rotateForce public property

public float rotateForce
return float