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

Public Member Functions

void MapParticlesToVertices (Mesh mesh, IObiParticleCollection collection, Matrix4x4 verticesToWorld, Matrix4x4 worldToCollection, float radius=0.25f, float falloff=1, uint maxInfluences=4, bool influencedByBones=false, float particleInfluence=1, float[] particleInfuenceMap=null)
 Creates an influence map from particles to vertices: each vertex will be influenced by multiple particles. More...
 
void MapBonesToParticles (Mesh mesh, ObiMesh particleMesh, Matrix4x4 verticesToWorld, Matrix4x4 worldToParticles, float falloff=1, uint maxInfluences=4)
 

Public Attributes

ObiInfluenceMap particlesOnVertices = new ObiInfluenceMap()
 
ObiInfluenceMap bonesOnParticles = new ObiInfluenceMap()
 
ObiNativeMatrix4x4List bindPoses = new ObiNativeMatrix4x4List()
 
uint checksum
 

Member Function Documentation

void Obi.ObiSkinMap.MapParticlesToVertices ( Mesh  mesh,
IObiParticleCollection  collection,
Matrix4x4  verticesToWorld,
Matrix4x4  worldToCollection,
float  radius = 0.25f,
float  falloff = 1,
uint  maxInfluences = 4,
bool  influencedByBones = false,
float  particleInfluence = 1,
float[]  particleInfuenceMap = null 
)

Creates an influence map from particles to vertices: each vertex will be influenced by multiple particles.

Parameters
meshthe mesh to get vertices from.
collectionthe particle collection.
verticesToWorldtransform from mesh space to world space.
worldToCollectiontransform from world space to particle collection space.
radiusinfluence radius.
falloffinfluence falloff.
maxInfluencesmaximum amount of particle influences per vertex.

Member Data Documentation

ObiNativeMatrix4x4List Obi.ObiSkinMap.bindPoses = new ObiNativeMatrix4x4List()

for cloth, stores particle bind poses. For softbodies, stores both bone and particle bind poses.

ObiInfluenceMap Obi.ObiSkinMap.bonesOnParticles = new ObiInfluenceMap()

for each particle, stores bone influences (cloth only)

uint Obi.ObiSkinMap.checksum

this skinmap's checksum, used to determine if the data it was generated from is no longer valid.

ObiInfluenceMap Obi.ObiSkinMap.particlesOnVertices = new ObiInfluenceMap()

for each vertex, stores particle influences.


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