Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiClothRendererBase Class Reference
Inheritance diagram for Obi.ObiClothRendererBase:
Obi.ObiClothRendererMeshFilter Obi.ObiSkinnedClothRenderer Obi.ObiClothRenderer Obi.ObiTearableClothRenderer

Public Types

enum  TangentSpaceUpdateMode {
  None, CopyNormalsFromSimulation, RecalculateNormalsFromMesh, RecalculateNormalsAndTangentsFromMesh,
  TransformNormalsAndTangents
}
 

Public Member Functions

virtual void UpdateRenderer (ObiActor actor)
 

Public Attributes

TangentSpaceUpdateMode tangentSpaceUpdate = TangentSpaceUpdateMode.TransformNormalsAndTangents
 
bool transferParticleColors = false
 
Mesh clothMesh
 

Protected Member Functions

virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void GetClothMeshData ()
 
virtual void SetClothMeshData ()
 
virtual void OnBlueprintLoaded (ObiActor actor, ObiActorBlueprint blueprint)
 
virtual void OnBlueprintUnloaded (ObiActor actor, ObiActorBlueprint blueprint)
 
virtual void SetupUpdate ()
 
virtual void UpdateActiveVertex (ObiSolver solver, int actorIndex, int meshVertexIndex)
 
virtual void UpdateInactiveVertex (ObiSolver solver, int actorIndex, int meshVertexIndex)
 

Protected Attributes

ObiClothBase cloth
 
List< Vector3 > restNormals = new List<Vector3>()
 
List< Vector4 > restTangents = new List<Vector4>()
 
List< Vector3 > clothVertices = new List<Vector3>()
 
List< Vector3 > clothNormals = new List<Vector3>()
 
List< Vector4 > clothTangents = new List<Vector4>()
 
List< Color > clothColors = new List<Color>()
 

Properties

virtual HalfEdgeMesh topology [get]
 
virtual Matrix4x4 renderMatrix [get]
 

Events

ObiActor.ActorCallback OnRendererUpdated
 

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