public static void FromCollider3D(VLSObstructor _obstructor, Collider _collider) { _obstructor.ClearLocalVertices(); if (_collider is BoxCollider) { From3DBoxCollider(_obstructor, _collider as BoxCollider); return; } if (_collider is SphereCollider) { FromSphereCollider(_obstructor, _collider as SphereCollider, _obstructor.circleResolution); return; } if (_collider is MeshCollider) { Debug.LogWarning("MeshCollider is not currently supported in VLS2D 4.0."); return; } if (_collider is CapsuleCollider) { Debug.LogWarning("CapsuleCollider is not currently supported in VLS2D 4.0."); return; } }
public static void FromCollider3D(VLSObstructor _obstructor, Collider _collider) { _obstructor.ClearLocalVertices(); if(_collider is BoxCollider) { From3DBoxCollider(_obstructor, _collider as BoxCollider); return; } if(_collider is SphereCollider) { FromSphereCollider(_obstructor, _collider as SphereCollider, _obstructor.circleResolution); return; } if(_collider is MeshCollider) { Debug.LogWarning("MeshCollider is not currently supported in VLS2D 4.0."); return; } if(_collider is CapsuleCollider) { Debug.LogWarning("CapsuleCollider is not currently supported in VLS2D 4.0."); return; } }
public static void FromCollider2D(VLSObstructor _obstructor, Collider2D _collider) { _obstructor.ClearLocalVertices(); if (_collider is BoxCollider2D) { FromBoxCollider(_obstructor, _collider as BoxCollider2D); return; } if (_collider is CircleCollider2D) { FromCircleCollider(_obstructor, _collider as CircleCollider2D, _obstructor.circleResolution); return; } if (_collider is PolygonCollider2D) { FromPolygonCollider(_obstructor, _collider as PolygonCollider2D, _obstructor.polyColliderPathIndex); return; } if (_collider is EdgeCollider2D) { Debug.LogWarning("EdgeCollider2D is not currently supported in VLS2D 4.0."); return; } }
public static void FromCollider2D(VLSObstructor _obstructor, Collider2D _collider) { _obstructor.ClearLocalVertices(); if (_collider is BoxCollider2D) { FromBoxCollider(_obstructor, _collider as BoxCollider2D); return; } if (_collider is CircleCollider2D) { FromCircleCollider(_obstructor, _collider as CircleCollider2D, _obstructor.circleResolution); return; } if (_collider is PolygonCollider2D) { FromPolygonCollider(_obstructor, _collider as PolygonCollider2D, _obstructor.polyColliderPathIndex); return; } if (_collider is EdgeCollider2D) { Debug.LogWarning("EdgeCollider2D is not currently supported in VLS2D 4.0."); return; } }