summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Physics
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Physics')
-rw-r--r--Assets/Scripts/Physics/PhysicsHelper.cs40
1 files changed, 19 insertions, 21 deletions
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;
- }
-
}