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