Example #1
0
 public void SetDefaultValues()
 {
     owner_id      = 0;
     stiffness     = 1500.0f;
     hit_handler   = null;
     force_handler = null;
 }
Example #2
0
 public void SetDefaultValues()
 {
     owner_id = 0;
     stiffness = 1500.0f;
     hit_handler = null;
     force_handler = null;
 }
Example #3
0
 void OnEnable()
 {
     m_trans = GetComponent<Transform>();
     if (m_mpupdate == null)
     {
         m_mpupdate = MPUpdate;
         m_handler = Handler;
     }
     m_target.AddUpdateRoutine(m_mpupdate);
 }
Example #4
0
 void OnEnable()
 {
     m_trans = GetComponent <Transform>();
     if (m_mpupdate == null)
     {
         m_mpupdate = MPUpdate;
         m_handler  = Handler;
     }
     m_target.AddUpdateRoutine(m_mpupdate);
 }
Example #5
0
 void Awake()
 {
     if (m_hit_handler == null)
     {
         m_hit_handler = PropagateHit;
     }
     if (m_force_handler == null)
     {
         m_force_handler = PropagateForce;
     }
 }
Example #6
0
 void Awake()
 {
     if (m_hit_handler == null) m_hit_handler = PropagateHit;
     if (m_force_handler == null) m_force_handler = PropagateForce;
 }
Example #7
0
 [DllImport("MassParticle")] public static extern void mpScanAllParallel(int context, MPHitHandler h);
Example #8
0
 [DllImport("MassParticle")] public static extern void mpScanAABBParallel(int context, MPHitHandler h, ref Vector3 center, ref Vector3 extent);
Example #9
0
 [DllImport("MassParticle")] public static extern void mpScanSphereParallel(int context, MPHitHandler h, ref Vector3 center, float radius);
Example #10
0
 public static extern void mpScanAllParallel(int context, MPHitHandler h);
Example #11
0
 public static extern void mpScanAABBParallel(int context, MPHitHandler h, ref Vector3 center, ref Vector3 extent);
Example #12
0
 public static extern void mpScanSphereParallel(int context, MPHitHandler h, ref Vector3 center, float radius);
Example #13
0
 public static extern void mpScanAllParallel(int context, MPHitHandler h);
Example #14
0
 public static extern void mpScanAABBParallel(int context, MPHitHandler h, ref Vector3 center, ref Vector3 extent);
Example #15
0
 public static extern void mpScanSphereParallel(int context, MPHitHandler h, ref Vector3 center, float radius);