![]() |
Obi
7.0.5
Unified particle physics for Unity
|
Classes | |
| struct | ParticleToSurface |
| class | SimplexComparer |
Public Member Functions | |
| override void | CommitBlueprintChanges () |
Public Member Functions inherited from Obi.ObiActorBlueprint | |
| delegate void | BlueprintCallback (ObiActorBlueprint blueprint) |
| bool | IsParticleActive (int index) |
| bool | ActivateParticle (int index) |
| bool | DeactivateParticle (int index) |
| void | RecalculateBounds () |
| IEnumerable< IObiConstraints > | GetConstraints () |
| IObiConstraints | GetConstraintsByType (Oni.ConstraintType type) |
| int | GetParticleRuntimeIndex (int blueprintIndex) |
| Vector3 | GetParticlePosition (int index) |
| Quaternion | GetParticleOrientation (int index) |
| Vector3 | GetParticleRestPosition (int index) |
| Quaternion | GetParticleRestOrientation (int index) |
| void | GetParticleAnisotropy (int index, ref Vector4 b1, ref Vector4 b2, ref Vector4 b3) |
| float | GetParticleMaxRadius (int index) |
| Color | GetParticleColor (int index) |
| void | GenerateImmediate () |
| IEnumerator | Generate () |
| void | Clear () |
| ObiParticleGroup | InsertNewParticleGroup (string name, int index, bool saveImmediately=true) |
| ObiParticleGroup | AppendNewParticleGroup (string name, bool saveImmediately=true) |
| bool | RemoveParticleGroupAt (int index, bool saveImmediately=true) |
| bool | SetParticleGroupName (int index, string name, bool saveImmediately=true) |
| void | ClearParticleGroups (bool registerUndo=true, bool saveImmediately=true) |
| virtual void | RemoveSelectedParticles (ref bool[] selected, bool optimize=true) |
| void | RestoreRemovedParticles () |
| virtual void | GenerateTethers (bool[] selected) |
| virtual void | ClearTethers () |
Public Attributes | |
| SurfaceSamplingMode | surfaceSamplingMode = SurfaceSamplingMode.Voxels |
| int | surfaceResolution = 16 |
| VolumeSamplingMode | volumeSamplingMode = VolumeSamplingMode.None |
| int | volumeResolution = 16 |
| GameObject | skeleton |
| Transform | rootBone |
| Quaternion | boneRotation |
| float | maxAnisotropy = 3 |
| float | smoothing = 0.25f |
| int | shapeResolution = 48 |
| Mesh | generatedMesh = null |
| int[] | vertexToParticle = null |
| List< ParticleType > | particleType = null |
| List< Matrix4x4 > | boneBindPoses = null |
| List< Vector2Int > | bonePairs = null |
| const float | DEFAULT_PARTICLE_MASS = 0.1f |
Public Attributes inherited from Obi.ObiSoftbodyBlueprintBase | |
| ObiSkinMap | defaultSkinmap => m_Skinmap |
Public Attributes inherited from Obi.ObiMeshBasedActorBlueprint | |
| Mesh | inputMesh |
| Vector3 | scale = Vector3.one |
| Quaternion | rotation = Quaternion.identity |
Public Attributes inherited from Obi.ObiActorBlueprint | |
| Vector3[] | positions = null |
| Vector4[] | restPositions = null |
| Quaternion[] | orientations = null |
| Quaternion[] | restOrientations = null |
| Vector3[] | velocities = null |
| Vector3[] | angularVelocities = null |
| float[] | invMasses = null |
| float[] | invRotationalMasses = null |
| int[] | filters = null |
| Vector3[] | principalRadii = null |
| Color[] | colors = null |
| int[] | points = null |
| int[] | edges = null |
| int[] | triangles = null |
| ObiDistanceConstraintsData | distanceConstraintsData = null |
| ObiBendConstraintsData | bendConstraintsData = null |
| ObiSkinConstraintsData | skinConstraintsData = null |
| ObiTetherConstraintsData | tetherConstraintsData = null |
| ObiStretchShearConstraintsData | stretchShearConstraintsData = null |
| ObiBendTwistConstraintsData | bendTwistConstraintsData = null |
| ObiShapeMatchingConstraintsData | shapeMatchingConstraintsData = null |
| ObiAerodynamicConstraintsData | aerodynamicConstraintsData = null |
| ObiChainConstraintsData | chainConstraintsData = null |
| ObiVolumeConstraintsData | volumeConstraintsData = null |
| List< ObiParticleGroup > | groups = new List<ObiParticleGroup>() |
Protected Member Functions | |
| override IEnumerator | Initialize () |
| override void | SwapWithFirstInactiveParticle (int index) |
| void | ConnectToNeighborParticles (MeshVoxelizer voxelizer, int particle, List< Vector3 > particles, ParticleType allowedNeighborType, int x, int y, int z, Vector3Int[] neighborhood, float clusterSize, List< int > cluster) |
| IEnumerator | CreateClustersFromVoxels (MeshVoxelizer voxelizer, List< Vector3 > particles, VoxelConnectivity connectivity, ParticleType allowedParticleType, ParticleType allowedNeighborType) |
| IEnumerator | CreateClustersFromSkeleton (List< Vector3 > particles) |
| IEnumerator | SurfaceMeshShapeMatchingConstraints (List< Vector3 > particles, int[] meshTriangles) |
| virtual IEnumerator | CreateSimplices (List< Vector3 > particles, int[] meshTriangles) |
| virtual IEnumerator | CreateShapeMatchingConstraints (List< Vector3 > particles) |
| void | CreateDefaultSkinmap (float radius, float falloff=1, uint maxInfluences=4) |
Protected Member Functions inherited from Obi.ObiActorBlueprint | |
| void | GenerateChecksum () |
Properties | |
| MeshVoxelizer | surfaceVoxelizer [get, set] |
| MeshVoxelizer | volumeVoxelizer [get, set] |
| MeshVoxelizer | shapeVoxelizer [get, set] |
Properties inherited from Obi.ObiActorBlueprint | |
| uint | checksum [get] |
| int | particleCount [get] |
| int | activeParticleCount [get] |
| Oni.SimplexType | simplexTypes [get] |
| bool | usesOrientedParticles [get] |
| virtual bool | usesTethers [get] |
| bool | edited [get, set] |
| bool | empty [get] |
| Bounds | bounds [get] |
Properties inherited from Obi.IObiParticleCollection | |
| int | particleCount [get] |
| int | activeParticleCount [get] |
| bool | usesOrientedParticles [get] |
Additional Inherited Members | |
Protected Attributes inherited from Obi.ObiSoftbodyBlueprintBase | |
| ObiSkinMap | m_Skinmap |
Protected Attributes inherited from Obi.ObiActorBlueprint | |
| uint | m_Checksum |
| bool | m_Empty = true |
| bool | m_Edited = false |
| int | m_ActiveParticleCount = 0 |
| int | m_InitialActiveParticleCount = 0 |
| Bounds | _bounds = new Bounds() |
Events inherited from Obi.ObiActorBlueprint | |
| BlueprintCallback | OnBlueprintGenerate |
| float Obi.ObiSoftbodySurfaceBlueprint.maxAnisotropy = 3 |
Maximum particle anisotropy. High values will allow particles to deform to better fit their neighborhood.
| Transform Obi.ObiSoftbodySurfaceBlueprint.rootBone |
root bone used for skeleton particles.