diff options
Diffstat (limited to 'libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs')
-rw-r--r-- | libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs | 160 |
1 files changed, 80 insertions, 80 deletions
diff --git a/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs b/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs index b094c39..ef6f134 100644 --- a/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs +++ b/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs | |||
@@ -1,80 +1,80 @@ | |||
1 | /* | 1 | /* |
2 | Bullet for XNA Copyright (c) 2003-2007 Vsevolod Klementjev http://www.codeplex.com/xnadevru | 2 | Bullet for XNA Copyright (c) 2003-2007 Vsevolod Klementjev http://www.codeplex.com/xnadevru |
3 | Bullet original C++ version Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com | 3 | Bullet original C++ version Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com |
4 | 4 | ||
5 | This software is provided 'as-is', without any express or implied | 5 | This software is provided 'as-is', without any express or implied |
6 | warranty. In no event will the authors be held liable for any damages | 6 | warranty. In no event will the authors be held liable for any damages |
7 | arising from the use of this software. | 7 | arising from the use of this software. |
8 | 8 | ||
9 | Permission is granted to anyone to use this software for any purpose, | 9 | Permission is granted to anyone to use this software for any purpose, |
10 | including commercial applications, and to alter it and redistribute it | 10 | including commercial applications, and to alter it and redistribute it |
11 | freely, subject to the following restrictions: | 11 | freely, subject to the following restrictions: |
12 | 12 | ||
13 | 1. The origin of this software must not be misrepresented; you must not | 13 | 1. The origin of this software must not be misrepresented; you must not |
14 | claim that you wrote the original software. If you use this software | 14 | claim that you wrote the original software. If you use this software |
15 | in a product, an acknowledgment in the product documentation would be | 15 | in a product, an acknowledgment in the product documentation would be |
16 | appreciated but is not required. | 16 | appreciated but is not required. |
17 | 2. Altered source versions must be plainly marked as such, and must not be | 17 | 2. Altered source versions must be plainly marked as such, and must not be |
18 | misrepresented as being the original software. | 18 | misrepresented as being the original software. |
19 | 3. This notice may not be removed or altered from any source distribution. | 19 | 3. This notice may not be removed or altered from any source distribution. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | using System; | 22 | using System; |
23 | using System.Collections.Generic; | 23 | using System.Collections.Generic; |
24 | using System.Text; | 24 | using System.Text; |
25 | using MonoXnaCompactMaths; | 25 | using MonoXnaCompactMaths; |
26 | using System.Diagnostics; | 26 | using System.Diagnostics; |
27 | 27 | ||
28 | namespace XnaDevRu.BulletX | 28 | namespace XnaDevRu.BulletX |
29 | { | 29 | { |
30 | public class EmptyShape : ConcaveShape | 30 | public class EmptyShape : ConcaveShape |
31 | { | 31 | { |
32 | private Vector3 _localScaling; | 32 | private Vector3 _localScaling; |
33 | 33 | ||
34 | public override string Name | 34 | public override string Name |
35 | { | 35 | { |
36 | get | 36 | get |
37 | { | 37 | { |
38 | return "Empty"; | 38 | return "Empty"; |
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | public override BroadphaseNativeTypes ShapeType | 42 | public override BroadphaseNativeTypes ShapeType |
43 | { | 43 | { |
44 | get | 44 | get |
45 | { | 45 | { |
46 | return BroadphaseNativeTypes.Empty; | 46 | return BroadphaseNativeTypes.Empty; |
47 | } | 47 | } |
48 | } | 48 | } |
49 | 49 | ||
50 | public override Vector3 LocalScaling | 50 | public override Vector3 LocalScaling |
51 | { | 51 | { |
52 | get | 52 | get |
53 | { | 53 | { |
54 | return _localScaling; | 54 | return _localScaling; |
55 | } | 55 | } |
56 | set | 56 | set |
57 | { | 57 | { |
58 | _localScaling = value; | 58 | _localScaling = value; |
59 | } | 59 | } |
60 | } | 60 | } |
61 | 61 | ||
62 | public override void ProcessAllTriangles(ITriangleCallback callback, MonoXnaCompactMaths.Vector3 aabbMin, MonoXnaCompactMaths.Vector3 aabbMax) | 62 | public override void ProcessAllTriangles(ITriangleCallback callback, MonoXnaCompactMaths.Vector3 aabbMin, MonoXnaCompactMaths.Vector3 aabbMax) |
63 | { | 63 | { |
64 | throw new Exception("The method or operation is not implemented."); | 64 | throw new Exception("The method or operation is not implemented."); |
65 | } | 65 | } |
66 | 66 | ||
67 | public override void GetAabb(Matrix t, out Vector3 aabbMin, out Vector3 aabbMax) | 67 | public override void GetAabb(Matrix t, out Vector3 aabbMin, out Vector3 aabbMax) |
68 | { | 68 | { |
69 | Vector3 margin = new Vector3(Margin, Margin, Margin); | 69 | Vector3 margin = new Vector3(Margin, Margin, Margin); |
70 | aabbMin = t.Translation - margin; | 70 | aabbMin = t.Translation - margin; |
71 | aabbMax = t.Translation + margin; | 71 | aabbMax = t.Translation + margin; |
72 | } | 72 | } |
73 | 73 | ||
74 | public override void CalculateLocalInertia(float mass, out Vector3 inertia) | 74 | public override void CalculateLocalInertia(float mass, out Vector3 inertia) |
75 | { | 75 | { |
76 | inertia = new Vector3(); | 76 | inertia = new Vector3(); |
77 | BulletDebug.Assert(false); | 77 | BulletDebug.Assert(false); |
78 | } | 78 | } |
79 | } | 79 | } |
80 | } | 80 | } |