mirror of
https://github.com/opensim/opensim.git
synced 2026-05-22 00:19:03 +08:00
* Eg; IObject.Physics.Torque = new Vector3(30.0,0.4,0.5); * Maps loosely to internal PhysicsActor class.
33 lines
913 B
C#
33 lines
913 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using OpenMetaverse;
|
|
|
|
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object
|
|
{
|
|
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 Velocity { get; set; }
|
|
Vector3 Torque { get; set; }
|
|
|
|
Vector3 Acceleration { get; }
|
|
Quaternion Orientation { get; set; }
|
|
Vector3 RotationalVelocity { get; set; }
|
|
|
|
void AddForce(Vector3 force, bool pushforce);
|
|
void AddAngularForce(Vector3 force, bool pushforce);
|
|
void SetMomentum(Vector3 momentum);
|
|
}
|
|
}
|