添加插件
This commit is contained in:
25
Assets/Obi/Scripts/Common/Actors/IObiParticleCollection.cs
Normal file
25
Assets/Obi/Scripts/Common/Actors/IObiParticleCollection.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace Obi
|
||||
{
|
||||
// Interface for classes that hold a collection of particles. Contains method to get common particle properties.
|
||||
public interface IObiParticleCollection
|
||||
{
|
||||
int particleCount { get; }
|
||||
int activeParticleCount { get; }
|
||||
bool usesOrientedParticles { get; }
|
||||
|
||||
int GetParticleRuntimeIndex(int index); // returns solver or blueprint index, depending on implementation.
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user