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)); }
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)); }
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)); }
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)); }