diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Region/Physics/Manager/PhysicsActor.cs | |
parent | * Deleted .user file (diff) | |
download | opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsActor.cs')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsActor.cs | 110 |
1 files changed, 23 insertions, 87 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs index 0fa7455..b59c13a 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs | |||
@@ -30,7 +30,9 @@ using Axiom.Math; | |||
30 | namespace OpenSim.Region.Physics.Manager | 30 | namespace OpenSim.Region.Physics.Manager |
31 | { | 31 | { |
32 | public delegate void PositionUpdate(PhysicsVector position); | 32 | public delegate void PositionUpdate(PhysicsVector position); |
33 | |||
33 | public delegate void VelocityUpdate(PhysicsVector velocity); | 34 | public delegate void VelocityUpdate(PhysicsVector velocity); |
35 | |||
34 | public delegate void OrientationUpdate(Quaternion orientation); | 36 | public delegate void OrientationUpdate(Quaternion orientation); |
35 | 37 | ||
36 | public abstract class PhysicsActor | 38 | public abstract class PhysicsActor |
@@ -43,52 +45,22 @@ namespace OpenSim.Region.Physics.Manager | |||
43 | 45 | ||
44 | public static PhysicsActor Null | 46 | public static PhysicsActor Null |
45 | { | 47 | { |
46 | get | 48 | get { return new NullPhysicsActor(); } |
47 | { | ||
48 | return new NullPhysicsActor(); | ||
49 | } | ||
50 | } | 49 | } |
51 | 50 | ||
52 | public abstract PhysicsVector Size | 51 | public abstract PhysicsVector Size { get; set; } |
53 | { | ||
54 | get; | ||
55 | set; | ||
56 | } | ||
57 | 52 | ||
58 | public abstract PhysicsVector Position | 53 | public abstract PhysicsVector Position { get; set; } |
59 | { | ||
60 | get; | ||
61 | set; | ||
62 | } | ||
63 | 54 | ||
64 | public abstract PhysicsVector Velocity | 55 | public abstract PhysicsVector Velocity { get; set; } |
65 | { | ||
66 | get; | ||
67 | set; | ||
68 | } | ||
69 | 56 | ||
70 | public abstract PhysicsVector Acceleration | 57 | public abstract PhysicsVector Acceleration { get; } |
71 | { | ||
72 | get; | ||
73 | } | ||
74 | 58 | ||
75 | public abstract Quaternion Orientation | 59 | public abstract Quaternion Orientation { get; set; } |
76 | { | ||
77 | get; | ||
78 | set; | ||
79 | } | ||
80 | 60 | ||
81 | public abstract bool Flying | 61 | public abstract bool Flying { get; set; } |
82 | { | ||
83 | get; | ||
84 | set; | ||
85 | } | ||
86 | 62 | ||
87 | public abstract bool Kinematic | 63 | public abstract bool Kinematic { get; set; } |
88 | { | ||
89 | get; | ||
90 | set; | ||
91 | } | ||
92 | 64 | ||
93 | public abstract void AddForce(PhysicsVector force); | 65 | public abstract void AddForce(PhysicsVector force); |
94 | 66 | ||
@@ -99,50 +71,26 @@ namespace OpenSim.Region.Physics.Manager | |||
99 | { | 71 | { |
100 | public override PhysicsVector Position | 72 | public override PhysicsVector Position |
101 | { | 73 | { |
102 | get | 74 | get { return PhysicsVector.Zero; } |
103 | { | 75 | set { return; } |
104 | return PhysicsVector.Zero; | ||
105 | } | ||
106 | set | ||
107 | { | ||
108 | return; | ||
109 | } | ||
110 | } | 76 | } |
111 | 77 | ||
112 | public override PhysicsVector Size | 78 | public override PhysicsVector Size |
113 | { | 79 | { |
114 | get | 80 | get { return PhysicsVector.Zero; } |
115 | { | 81 | set { return; } |
116 | return PhysicsVector.Zero; | ||
117 | } | ||
118 | set | ||
119 | { | ||
120 | return; | ||
121 | } | ||
122 | } | 82 | } |
123 | 83 | ||
124 | public override PhysicsVector Velocity | 84 | public override PhysicsVector Velocity |
125 | { | 85 | { |
126 | get | 86 | get { return PhysicsVector.Zero; } |
127 | { | 87 | set { return; } |
128 | return PhysicsVector.Zero; | ||
129 | } | ||
130 | set | ||
131 | { | ||
132 | return; | ||
133 | } | ||
134 | } | 88 | } |
135 | 89 | ||
136 | public override Quaternion Orientation | 90 | public override Quaternion Orientation |
137 | { | 91 | { |
138 | get | 92 | get { return Quaternion.Identity; } |
139 | { | 93 | set { } |
140 | return Quaternion.Identity; | ||
141 | } | ||
142 | set | ||
143 | { | ||
144 | |||
145 | } | ||
146 | } | 94 | } |
147 | 95 | ||
148 | public override PhysicsVector Acceleration | 96 | public override PhysicsVector Acceleration |
@@ -152,26 +100,14 @@ namespace OpenSim.Region.Physics.Manager | |||
152 | 100 | ||
153 | public override bool Flying | 101 | public override bool Flying |
154 | { | 102 | { |
155 | get | 103 | get { return false; } |
156 | { | 104 | set { return; } |
157 | return false; | ||
158 | } | ||
159 | set | ||
160 | { | ||
161 | return; | ||
162 | } | ||
163 | } | 105 | } |
164 | 106 | ||
165 | public override bool Kinematic | 107 | public override bool Kinematic |
166 | { | 108 | { |
167 | get | 109 | get { return true; } |
168 | { | 110 | set { return; } |
169 | return true; | ||
170 | } | ||
171 | set | ||
172 | { | ||
173 | return; | ||
174 | } | ||
175 | } | 111 | } |
176 | 112 | ||
177 | public override void AddForce(PhysicsVector force) | 113 | public override void AddForce(PhysicsVector force) |
@@ -184,4 +120,4 @@ namespace OpenSim.Region.Physics.Manager | |||
184 | return; | 120 | return; |
185 | } | 121 | } |
186 | } | 122 | } |
187 | } | 123 | } \ No newline at end of file |