aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.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/Object/IObjectPhysics.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/Object/IObjectPhysics.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs
index aaa95e5..9035db9 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs
@@ -5,25 +5,27 @@ using OpenMetaverse;
5 5
6namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object 6namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object
7{ 7{
8 interface IObjectPhysics 8 public interface IObjectPhysics
9 { 9 {
10 bool Enabled { get; set; } 10 bool Enabled { get; set; }
11
11 bool Phantom { get; set; } 12 bool Phantom { get; set; }
12 bool PhantomCollisions { get; set; } 13 bool PhantomCollisions { get; set; }
13 14
14 double Density { get; set; } 15 double Density { get; set; }
15 double Mass { get; set; } 16 double Mass { get; set; }
16
17 double Buoyancy { get; set; } 17 double Buoyancy { get; set; }
18 18
19 Vector3 GeometricCenter { get; } 19 Vector3 GeometricCenter { get; }
20 Vector3 CenterOfMass { get; } 20 Vector3 CenterOfMass { get; }
21
22 Vector3 RotationalVelocity { get; set; }
21 Vector3 Velocity { get; set; } 23 Vector3 Velocity { get; set; }
22 Vector3 Torque { get; set; } 24 Vector3 Torque { get; set; }
23
24 Vector3 Acceleration { get; } 25 Vector3 Acceleration { get; }
25 Quaternion Orientation { get; set; } 26 Vector3 Force { get; set; }
26 Vector3 RotationalVelocity { get; set; } 27
28 bool FloatOnWater { set; }
27 29
28 void AddForce(Vector3 force, bool pushforce); 30 void AddForce(Vector3 force, bool pushforce);
29 void AddAngularForce(Vector3 force, bool pushforce); 31 void AddAngularForce(Vector3 force, bool pushforce);