diff options
author | chai <chaifix@163.com> | 2020-10-23 21:01:28 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-23 21:01:28 +0800 |
commit | 56a9b3bf4edc56e9c1dd502a469a7a0167751215 (patch) | |
tree | d573da8c9137645df27e4194eaf9773c7586514b /Assets/Scripts/Physics/PhysicsHelper.cs | |
parent | b82da95b5181ac8bbae38efb13e950d5e88a4caa (diff) |
* ability
Diffstat (limited to 'Assets/Scripts/Physics/PhysicsHelper.cs')
-rw-r--r-- | Assets/Scripts/Physics/PhysicsHelper.cs | 40 |
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;
- }
-
}
|