Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiRopeChainRenderer Class Reference
Inheritance diagram for Obi.ObiRopeChainRenderer:

Public Member Functions

void ClearChainLinkInstances ()
 
void CreateChainLinkInstances (ObiRopeBase rope)
 
void UpdateRenderer (ObiActor actor)
 

Public Attributes

List< GameObject > linkInstances = new List<GameObject>()
 
Vector3 linkScale = Vector3.one
 
List< GameObject > linkPrefabs = new List<GameObject>()
 
float twistAnchor = 0
 
float sectionTwist = 0
 

Properties

bool RandomizeLinks [get, set]
 

Member Function Documentation

void Obi.ObiRopeChainRenderer.ClearChainLinkInstances ( )

Destroys all chain link instances. Used when the chain must be re-created from scratch, and when the actor is disabled/destroyed.

Member Data Documentation

Vector3 Obi.ObiRopeChainRenderer.linkScale = Vector3.one

Scale of chain links.

float Obi.ObiRopeChainRenderer.sectionTwist = 0

Amount of twist applied to each section, in degrees.

float Obi.ObiRopeChainRenderer.twistAnchor = 0

Normalized position of twisting origin along rope.


The documentation for this class was generated from the following file: