public void SetDefaultValues() { owner_id = 0; stiffness = 1500.0f; hit_handler = null; force_handler = null; }
void OnEnable() { m_trans = GetComponent<Transform>(); if (m_mpupdate == null) { m_mpupdate = MPUpdate; m_handler = Handler; } m_target.AddUpdateRoutine(m_mpupdate); }
void OnEnable() { m_trans = GetComponent <Transform>(); if (m_mpupdate == null) { m_mpupdate = MPUpdate; m_handler = Handler; } m_target.AddUpdateRoutine(m_mpupdate); }
void Awake() { if (m_hit_handler == null) { m_hit_handler = PropagateHit; } if (m_force_handler == null) { m_force_handler = PropagateForce; } }
void Awake() { if (m_hit_handler == null) m_hit_handler = PropagateHit; if (m_force_handler == null) m_force_handler = PropagateForce; }
[DllImport("MassParticle")] public static extern void mpScanAllParallel(int context, MPHitHandler h);
[DllImport("MassParticle")] public static extern void mpScanAABBParallel(int context, MPHitHandler h, ref Vector3 center, ref Vector3 extent);
[DllImport("MassParticle")] public static extern void mpScanSphereParallel(int context, MPHitHandler h, ref Vector3 center, float radius);
public static extern void mpScanAllParallel(int context, MPHitHandler h);
public static extern void mpScanAABBParallel(int context, MPHitHandler h, ref Vector3 center, ref Vector3 extent);
public static extern void mpScanSphereParallel(int context, MPHitHandler h, ref Vector3 center, float radius);