C# Class UnityContrib.UnityEngine.RuntimeTreeColliders

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: UnityContrib/framework

Public Methods

Method Description
AddTree ( TreeInstance treeInstance ) : bool

Adds the specified treeInstance to the collection of trees who's collider to manage.

RemoveTree ( TreeInstance treeInstance ) : bool

Removes the specified treeInstance from the collection of trees who's collider to manage.

Private Methods

Method Description
CopyCapsuleColliderProperties ( CapsuleCollider from, CapsuleCollider to ) : void

Copies the capsule collider specific properties from one T:UnityEngine.CapsuleCollider to another.

FixedUpdate ( ) : void

Changes the colliders based on which trees the player is near.

This method is invoked by Unity.

SetupChildColliders ( CapsuleCollider currentCollider, CapsuleCollider prototypeCollider ) : void

Creates, updates, enables and disables child colliders.

Start ( ) : void

Caches quick references and initializes the quadtree.

This method is invoked by Unity.

Method Details

AddTree() public method

Adds the specified treeInstance to the collection of trees who's collider to manage.
public AddTree ( TreeInstance treeInstance ) : bool
treeInstance UnityEngine.TreeInstance /// The to add. ///
return bool

RemoveTree() public method

Removes the specified treeInstance from the collection of trees who's collider to manage.
public RemoveTree ( TreeInstance treeInstance ) : bool
treeInstance UnityEngine.TreeInstance /// The to remove. ///
return bool