From 56a9b3bf4edc56e9c1dd502a469a7a0167751215 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 23 Oct 2020 21:01:28 +0800 Subject: * ability --- Assets/Scripts/Physics/PhysicsHelper.cs | 40 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 21 deletions(-) (limited to 'Assets/Scripts/Physics/PhysicsHelper.cs') diff --git a/Assets/Scripts/Physics/PhysicsHelper.cs b/Assets/Scripts/Physics/PhysicsHelper.cs index aa31108e..0bd11ba7 100644 --- a/Assets/Scripts/Physics/PhysicsHelper.cs +++ b/Assets/Scripts/Physics/PhysicsHelper.cs @@ -24,7 +24,25 @@ public class PhysicsCollisionInfo public sealed class PhysicsHelper { -#region 简略版的2D检测,忽略z轴,对于格斗游戏来说使用2D物理 + public static bool BallContains(PhysicsBall ball, Vector3 point) + { + return false; + } + + public static bool BallContains(PhysicsBall ball, Vector2 point) + { + return false; + } + + public static bool BoxContains(PhysicsBox box, Vector3 point) + { + return false; + } + + public static bool BoxContains(PhysicsBox box, Vector2 point) + { + return false; + } public static bool BallvsBall2D(PhysicsBall ball1, PhysicsBall ball2, out PhysicsCollisionInfo info) { @@ -78,24 +96,4 @@ public sealed class PhysicsHelper } } -#endregion - - public static bool BallvsBall(PhysicsBall ball1, PhysicsBall ball2, out PhysicsCollisionInfo info) - { - info = null; - return true; - } - - public static bool BoxvsBox(PhysicsBox box1, PhysicsBox box2, out PhysicsCollisionInfo info) - { - info = null; - return true; - } - - public static bool BallvsBox(PhysicsBall ball, PhysicsBox box, out PhysicsCollisionInfo info) - { - info = null; - return true; - } - } -- cgit v1.1-26-g67d0