diff options
author | John Hurliman | 2009-10-25 23:16:12 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-26 18:23:43 -0700 |
commit | d199767e6991d6f368661fce9c5a072e564b8a4b (patch) | |
tree | d9347b8a424c0164e208f908613aa8fe1511444b /OpenSim/Region/Physics/Manager/PhysicsScene.cs | |
parent | * Double the priority on avatar bake texture requests to get avatars rezzing ... (diff) | |
download | opensim-SC_OLD-d199767e6991d6f368661fce9c5a072e564b8a4b.zip opensim-SC_OLD-d199767e6991d6f368661fce9c5a072e564b8a4b.tar.gz opensim-SC_OLD-d199767e6991d6f368661fce9c5a072e564b8a4b.tar.bz2 opensim-SC_OLD-d199767e6991d6f368661fce9c5a072e564b8a4b.tar.xz |
Experimental change of PhysicsVector to Vector3. Untested
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsScene.cs')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsScene.cs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index 6dd26bb..bb0d18e 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs | |||
@@ -64,23 +64,23 @@ namespace OpenSim.Region.Physics.Manager | |||
64 | 64 | ||
65 | public abstract void Initialise(IMesher meshmerizer, IConfigSource config); | 65 | public abstract void Initialise(IMesher meshmerizer, IConfigSource config); |
66 | 66 | ||
67 | public abstract PhysicsActor AddAvatar(string avName, PhysicsVector position, PhysicsVector size, bool isFlying); | 67 | public abstract PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying); |
68 | 68 | ||
69 | public abstract void RemoveAvatar(PhysicsActor actor); | 69 | public abstract void RemoveAvatar(PhysicsActor actor); |
70 | 70 | ||
71 | public abstract void RemovePrim(PhysicsActor prim); | 71 | public abstract void RemovePrim(PhysicsActor prim); |
72 | 72 | ||
73 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, PhysicsVector position, | 73 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
74 | PhysicsVector size, Quaternion rotation); //To be removed | 74 | Vector3 size, Quaternion rotation); //To be removed |
75 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, PhysicsVector position, | 75 | public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
76 | PhysicsVector size, Quaternion rotation, bool isPhysical); | 76 | Vector3 size, Quaternion rotation, bool isPhysical); |
77 | 77 | ||
78 | public virtual bool SupportsNINJAJoints | 78 | public virtual bool SupportsNINJAJoints |
79 | { | 79 | { |
80 | get { return false; } | 80 | get { return false; } |
81 | } | 81 | } |
82 | 82 | ||
83 | public virtual PhysicsJoint RequestJointCreation(string objectNameInScene, PhysicsJointType jointType, PhysicsVector position, | 83 | public virtual PhysicsJoint RequestJointCreation(string objectNameInScene, PhysicsJointType jointType, Vector3 position, |
84 | Quaternion rotation, string parms, List<string> bodyNames, string trackedBodyName, Quaternion localRotation) | 84 | Quaternion rotation, string parms, List<string> bodyNames, string trackedBodyName, Quaternion localRotation) |
85 | { return null; } | 85 | { return null; } |
86 | 86 | ||
@@ -129,11 +129,11 @@ namespace OpenSim.Region.Physics.Manager | |||
129 | } | 129 | } |
130 | } | 130 | } |
131 | 131 | ||
132 | public virtual PhysicsVector GetJointAnchor(PhysicsJoint joint) | 132 | public virtual Vector3 GetJointAnchor(PhysicsJoint joint) |
133 | { return null; } | 133 | { return Vector3.Zero; } |
134 | 134 | ||
135 | public virtual PhysicsVector GetJointAxis(PhysicsJoint joint) | 135 | public virtual Vector3 GetJointAxis(PhysicsJoint joint) |
136 | { return null; } | 136 | { return Vector3.Zero; } |
137 | 137 | ||
138 | 138 | ||
139 | public abstract void AddPhysicsActorTaint(PhysicsActor prim); | 139 | public abstract void AddPhysicsActorTaint(PhysicsActor prim); |
@@ -212,7 +212,7 @@ namespace OpenSim.Region.Physics.Manager | |||
212 | // Does nothing right now | 212 | // Does nothing right now |
213 | } | 213 | } |
214 | 214 | ||
215 | public override PhysicsActor AddAvatar(string avName, PhysicsVector position, PhysicsVector size, bool isFlying) | 215 | public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying) |
216 | { | 216 | { |
217 | m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddAvatar({0})", position); | 217 | m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddAvatar({0})", position); |
218 | return PhysicsActor.Null; | 218 | return PhysicsActor.Null; |
@@ -231,21 +231,21 @@ namespace OpenSim.Region.Physics.Manager | |||
231 | } | 231 | } |
232 | 232 | ||
233 | /* | 233 | /* |
234 | public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size, Quaternion rotation) | 234 | public override PhysicsActor AddPrim(Vector3 position, Vector3 size, Quaternion rotation) |
235 | { | 235 | { |
236 | m_log.InfoFormat("NullPhysicsScene : AddPrim({0},{1})", position, size); | 236 | m_log.InfoFormat("NullPhysicsScene : AddPrim({0},{1})", position, size); |
237 | return PhysicsActor.Null; | 237 | return PhysicsActor.Null; |
238 | } | 238 | } |
239 | */ | 239 | */ |
240 | 240 | ||
241 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, PhysicsVector position, | 241 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
242 | PhysicsVector size, Quaternion rotation) //To be removed | 242 | Vector3 size, Quaternion rotation) //To be removed |
243 | { | 243 | { |
244 | return AddPrimShape(primName, pbs, position, size, rotation, false); | 244 | return AddPrimShape(primName, pbs, position, size, rotation, false); |
245 | } | 245 | } |
246 | 246 | ||
247 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, PhysicsVector position, | 247 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
248 | PhysicsVector size, Quaternion rotation, bool isPhysical) | 248 | Vector3 size, Quaternion rotation, bool isPhysical) |
249 | { | 249 | { |
250 | m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddPrim({0},{1})", position, size); | 250 | m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddPrim({0},{1})", position, size); |
251 | return PhysicsActor.Null; | 251 | return PhysicsActor.Null; |