コード例 #1
0
        public static void VisualiseCapsuleGizmos(CapsulecastCommand cast, Color color = default)
        {
            var offset = cast.direction * cast.distance;

            _gizmosQueue.Enqueue(() => GizmosExtensions.DrawWireCapsule(cast.point1 + offset, cast.point2 + offset, cast.radius, color));
        }
コード例 #2
0
 public static void VisualiseCapsuleCast(CapsulecastCommand cast, Color color = default, Color castColor = default)
 {
     _gizmosQueue.Enqueue(() => GizmosExtensions.DrawCapsuleCast(cast.point1, cast.point2, cast.radius, cast.direction, cast.distance, color, castColor));
 }
コード例 #3
0
 public static void VisualiseCapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, float distance, Color color = default, Color castColor = default)
 {
     _gizmosQueue.Enqueue(() => GizmosExtensions.DrawCapsuleCast(point1, point2, radius, direction, distance, color, castColor));
 }
コード例 #4
0
 public static void VisualiseSphereCast(Vector3 position, Vector3 direction, float radius, float distance, Color color = default, Color castColor = default)
 {
     _gizmosQueue.Enqueue(() => GizmosExtensions.DrawSphereCast(position, direction, radius, distance, color, castColor));
 }