表示テーマ
ParticleCollisionSettings
ParticleCollisionSettingsは、Particleの個別設定をまとめる型です。取得元の設定から値を編集し、所有するComponentへ反映します。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.ParticleCollisionSettings(Class) - 継承元:NEMEngine.ParticleModuleSettings
bounce
csharp
public float bounce衝突時の跳ね返り係数です。
操作:読取・変更。
depth
csharp
public bool depthCameraの深度とのGPU衝突判定を有効にします。画面外の面は対象にできません。
操作:読取・変更。
depthCamera
csharp
public ParticleEntityReference depthCamera深度衝突に使用するCamera参照です。
操作:読取・変更。
depthThickness
csharp
public float depthThickness深度衝突面の厚みの許容値です。
操作:読取・変更。
enabled
csharp
public bool enabledこのComponentの処理を有効にします。GameObject全体のアクティブ状態とは別です。
操作:読取・変更。
friction
csharp
public float friction接触面での摩擦です。
操作:読取・変更。
heightmap
csharp
public bool heightmap衝突に使う高さ画像です。
操作:読取・変更。
includeTriggers
csharp
public bool includeTriggersTriggerも衝突判定に含めます。
操作:読取・変更。
layerMask
csharp
public uint layerMask影響先・判定対象のLayerをbit集合で選びます。
操作:読取・変更。
plane
csharp
public bool plane無限平面との衝突を有効にします。
操作:読取・変更。
planeDistance
csharp
public float planeDistance原点から衝突平面への距離です。
操作:読取・変更。
planeNormal
csharp
public Vector3 planeNormal衝突平面の法線です。
操作:読取・変更。
radius
csharp
public float radius形状または効果の半径です。
操作:読取・変更。
response
csharp
public ParticleCollisionResponse response衝突時に反射・停止・消滅のどれを行うかを選びます。
操作:読取・変更。
sceneColliders
csharp
public bool sceneCollidersSceneのColliderとの衝突を使います。
操作:読取・変更。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。