Esempio n. 1
0
 void OnDrawGizmos()
 {
     if (!enabled)
     {
         return;
     }
     m_trans = GetComponent <Transform>();
     MPGPImpl.BuildCapsuleCollider(ref m_collider_data, m_trans, ref m_center, m_radius, m_height, (int)m_direction, m_id);
     Gizmos.color = MPGPImpl.ColliderGizmoColor;
     Gizmos.DrawWireSphere(m_collider_data.shape.pos1, m_radius);
     Gizmos.DrawWireSphere(m_collider_data.shape.pos2, m_radius);
     Gizmos.DrawLine(m_collider_data.shape.pos1, m_collider_data.shape.pos2);
     Gizmos.matrix = Matrix4x4.identity;
 }
Esempio n. 2
0
 public override void ActualUpdate()
 {
     MPGPImpl.BuildCapsuleCollider(ref m_collider_data, m_trans, ref m_center, m_radius, m_height, (int)m_direction, m_id);
     EachTargets((t) => { t.AddCapsuleCollider(ref m_collider_data); });
 }