From 746729b6cefce7093d346e21909b35440dd88569 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 4 Apr 2009 23:23:24 +0000 Subject: * Implements IObjectPhysics on SOPObject partially. * Eg, IObject.Physics.* is now valid syntax and compiles (but will throw NotSupported at runtime) --- .../Scripting/Minimodule/Object/IObjectPhysics.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Object/IObjectPhysics.cs') 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; namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object { - interface IObjectPhysics + public interface IObjectPhysics { bool Enabled { get; set; } + bool Phantom { get; set; } bool PhantomCollisions { get; set; } double Density { get; set; } double Mass { get; set; } - double Buoyancy { get; set; } Vector3 GeometricCenter { get; } Vector3 CenterOfMass { get; } + + Vector3 RotationalVelocity { get; set; } Vector3 Velocity { get; set; } Vector3 Torque { get; set; } - Vector3 Acceleration { get; } - Quaternion Orientation { get; set; } - Vector3 RotationalVelocity { get; set; } + Vector3 Force { get; set; } + + bool FloatOnWater { set; } void AddForce(Vector3 force, bool pushforce); void AddAngularForce(Vector3 force, bool pushforce); -- cgit v1.1