aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs80
1 files changed, 80 insertions, 0 deletions
diff --git a/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs b/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs
new file mode 100644
index 0000000..b094c39
--- /dev/null
+++ b/libraries/ModifiedBulletX/ModifiedBulletX/Collision/CollisionShapes/EmptyShape.cs
@@ -0,0 +1,80 @@
1/*
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
4
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
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
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
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22using System;
23using System.Collections.Generic;
24using System.Text;
25using MonoXnaCompactMaths;
26using System.Diagnostics;
27
28namespace XnaDevRu.BulletX
29{
30 public class EmptyShape : ConcaveShape
31 {
32 private Vector3 _localScaling;
33
34 public override string Name
35 {
36 get
37 {
38 return "Empty";
39 }
40 }
41
42 public override BroadphaseNativeTypes ShapeType
43 {
44 get
45 {
46 return BroadphaseNativeTypes.Empty;
47 }
48 }
49
50 public override Vector3 LocalScaling
51 {
52 get
53 {
54 return _localScaling;
55 }
56 set
57 {
58 _localScaling = value;
59 }
60 }
61
62 public override void ProcessAllTriangles(ITriangleCallback callback, MonoXnaCompactMaths.Vector3 aabbMin, MonoXnaCompactMaths.Vector3 aabbMax)
63 {
64 throw new Exception("The method or operation is not implemented.");
65 }
66
67 public override void GetAabb(Matrix t, out Vector3 aabbMin, out Vector3 aabbMax)
68 {
69 Vector3 margin = new Vector3(Margin, Margin, Margin);
70 aabbMin = t.Translation - margin;
71 aabbMax = t.Translation + margin;
72 }
73
74 public override void CalculateLocalInertia(float mass, out Vector3 inertia)
75 {
76 inertia = new Vector3();
77 BulletDebug.Assert(false);
78 }
79 }
80}