diff options
author | Adam Frisby | 2009-04-04 23:16:19 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-04 23:16:19 +0000 |
commit | 39c3ccb93a62de270c2f625d396daf18c805bf51 (patch) | |
tree | 05e6eb61de48e3925ba5801c1f4efe395387df5d /OpenSim/Region/OptionalModules/Scripting | |
parent | * More fiddling with MRM IPersistence, now stores <T> instead of Object. (diff) | |
download | opensim-SC_OLD-39c3ccb93a62de270c2f625d396daf18c805bf51.zip opensim-SC_OLD-39c3ccb93a62de270c2f625d396daf18c805bf51.tar.gz opensim-SC_OLD-39c3ccb93a62de270c2f625d396daf18c805bf51.tar.bz2 opensim-SC_OLD-39c3ccb93a62de270c2f625d396daf18c805bf51.tar.xz |
* Implements IObjectPhysics, this collects Physics attributes into one interface, will be referenced on IObject as IObject.Physics.*
* Eg; IObject.Physics.Torque = new Vector3(30.0,0.4,0.5);
* Maps loosely to internal PhysicsActor class.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs new file mode 100644 index 0000000..aaa95e5 --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs | |||
@@ -0,0 +1,32 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenMetaverse; | ||
5 | |||
6 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | ||
7 | { | ||
8 | interface IObjectPhysics | ||
9 | { | ||
10 | bool Enabled { get; set; } | ||
11 | bool Phantom { get; set; } | ||
12 | bool PhantomCollisions { get; set; } | ||
13 | |||
14 | double Density { get; set; } | ||
15 | double Mass { get; set; } | ||
16 | |||
17 | double Buoyancy { get; set; } | ||
18 | |||
19 | Vector3 GeometricCenter { get; } | ||
20 | Vector3 CenterOfMass { get; } | ||
21 | Vector3 Velocity { get; set; } | ||
22 | Vector3 Torque { get; set; } | ||
23 | |||
24 | Vector3 Acceleration { get; } | ||
25 | Quaternion Orientation { get; set; } | ||
26 | Vector3 RotationalVelocity { get; set; } | ||
27 | |||
28 | void AddForce(Vector3 force, bool pushforce); | ||
29 | void AddAngularForce(Vector3 force, bool pushforce); | ||
30 | void SetMomentum(Vector3 momentum); | ||
31 | } | ||
32 | } | ||