|
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) |
|
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
-
mesh | the mesh to get vertices from. |
collection | the particle collection. |
verticesToWorld | transform from mesh space to world space. |
worldToCollection | transform from world space to particle collection space. |
radius | influence radius. |
falloff | influence falloff. |
maxInfluences | maximum amount of particle influences per vertex. |
for cloth, stores particle bind poses. For softbodies, stores both bone and particle bind poses.
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.
for each vertex, stores particle influences.
The documentation for this class was generated from the following file:
- Assets/Obi/Scripts/Common/DataStructures/SkinMap/ObiSkinMap.cs