aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
diff options
context:
space:
mode:
authorAdam Frisby2009-04-04 23:23:24 +0000
committerAdam Frisby2009-04-04 23:23:24 +0000
commit746729b6cefce7093d346e21909b35440dd88569 (patch)
treea4782a6b9db82e6562c354b79eba480e477818de /OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
parent* Implements IObjectPhysics, this collects Physics attributes into one interf... (diff)
downloadopensim-SC-746729b6cefce7093d346e21909b35440dd88569.zip
opensim-SC-746729b6cefce7093d346e21909b35440dd88569.tar.gz
opensim-SC-746729b6cefce7093d346e21909b35440dd88569.tar.bz2
opensim-SC-746729b6cefce7093d346e21909b35440dd88569.tar.xz
* Implements IObjectPhysics on SOPObject partially.
* Eg, IObject.Physics.* is now valid syntax and compiles (but will throw NotSupported at runtime)
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs106
1 files changed, 105 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
index c0a838b..2e93673 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
@@ -30,10 +30,11 @@ using System.Collections.Generic;
30using OpenMetaverse; 30using OpenMetaverse;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Region.Framework.Scenes; 32using OpenSim.Region.Framework.Scenes;
33using OpenSim.Region.OptionalModules.Scripting.Minimodule.Object;
33 34
34namespace OpenSim.Region.OptionalModules.Scripting.Minimodule 35namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
35{ 36{
36 class SOPObject : MarshalByRefObject, IObject 37 class SOPObject : MarshalByRefObject, IObject, IObjectPhysics
37 { 38 {
38 private readonly Scene m_rootScene; 39 private readonly Scene m_rootScene;
39 private readonly uint m_localID; 40 private readonly uint m_localID;
@@ -254,6 +255,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
254 set { throw new System.NotImplementedException(); } 255 set { throw new System.NotImplementedException(); }
255 } 256 }
256 257
258 public IObjectPhysics Physics
259 {
260 get { return this; }
261 }
262
257 #region Public Functions 263 #region Public Functions
258 264
259 public void Say(string msg) 265 public void Say(string msg)
@@ -386,5 +392,103 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
386 392
387 #endregion 393 #endregion
388 394
395 #region IObjectPhysics
396
397 public bool Enabled
398 {
399 get { throw new System.NotImplementedException(); }
400 set { throw new System.NotImplementedException(); }
401 }
402
403 public bool Phantom
404 {
405 get { throw new System.NotImplementedException(); }
406 set { throw new System.NotImplementedException(); }
407 }
408
409 public bool PhantomCollisions
410 {
411 get { throw new System.NotImplementedException(); }
412 set { throw new System.NotImplementedException(); }
413 }
414
415 public double Density
416 {
417 get { throw new System.NotImplementedException(); }
418 set { throw new System.NotImplementedException(); }
419 }
420
421 public double Mass
422 {
423 get { throw new System.NotImplementedException(); }
424 set { throw new System.NotImplementedException(); }
425 }
426
427 public double Buoyancy
428 {
429 get { throw new System.NotImplementedException(); }
430 set { throw new System.NotImplementedException(); }
431 }
432
433 public Vector3 GeometricCenter
434 {
435 get { throw new System.NotImplementedException(); }
436 }
437
438 public Vector3 CenterOfMass
439 {
440 get { throw new System.NotImplementedException(); }
441 }
442
443 public Vector3 RotationalVelocity
444 {
445 get { throw new System.NotImplementedException(); }
446 set { throw new System.NotImplementedException(); }
447 }
448
449 public Vector3 Velocity
450 {
451 get { throw new System.NotImplementedException(); }
452 set { throw new System.NotImplementedException(); }
453 }
454
455 public Vector3 Torque
456 {
457 get { throw new System.NotImplementedException(); }
458 set { throw new System.NotImplementedException(); }
459 }
460
461 public Vector3 Acceleration
462 {
463 get { throw new System.NotImplementedException(); }
464 }
465
466 public Vector3 Force
467 {
468 get { throw new System.NotImplementedException(); }
469 set { throw new System.NotImplementedException(); }
470 }
471
472 public bool FloatOnWater
473 {
474 set { throw new System.NotImplementedException(); }
475 }
476
477 public void AddForce(Vector3 force, bool pushforce)
478 {
479 throw new System.NotImplementedException();
480 }
481
482 public void AddAngularForce(Vector3 force, bool pushforce)
483 {
484 throw new System.NotImplementedException();
485 }
486
487 public void SetMomentum(Vector3 momentum)
488 {
489 throw new System.NotImplementedException();
490 }
491
492 #endregion
389 } 493 }
390} 494}