* Implements IObjectPhysics on SOPObject partially.

* Eg, IObject.Physics.* is now valid syntax and compiles (but will throw NotSupported at runtime)
This commit is contained in:
Adam Frisby
2009-04-04 23:23:24 +00:00
parent 39c3ccb93a
commit 746729b6ce
3 changed files with 116 additions and 7 deletions

View File

@@ -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);