OpenSim
|
Public Member Functions | |
delegate void | PreStepAction (float timeStep) |
delegate void | PostStepAction (float timeStep) |
delegate void | TaintCallback () |
void | Initialise (IConfigSource source) |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created. More... | |
void | Close () |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore. More... | |
void | AddRegion (Scene scene) |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called. More... | |
void | RemoveRegion (Scene scene) |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed. More... | |
void | RegionLoaded (Scene scene) |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module. More... | |
override void | Dispose () |
override PhysicsActor | AddAvatar (string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) |
Add an avatar More... | |
override PhysicsActor | AddAvatar (uint localID, string avName, Vector3 position, Vector3 size, float footOffset, bool isFlying) |
override void | RemoveAvatar (PhysicsActor actor) |
Remove an avatar. More... | |
override void | RemovePrim (PhysicsActor prim) |
Remove a prim. More... | |
override PhysicsActor | AddPrimShape (string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, uint localID) |
override void | AddPhysicsActorTaint (PhysicsActor prim) |
override float | Simulate (float timeStep) |
Perform a simulation of the current physics scene over the given timestep. More... | |
void | PostUpdate (BSPhysObject updatee) |
void | BulletSPluginPhysicsThread () |
override void | GetResults () |
override void | SetTerrain (float[] heightMap) |
override void | SetWaterLevel (float baseheight) |
override void | DeleteTerrain () |
override bool | SupportsCombining () |
override void | Combine (PhysicsScene pScene, Vector3 offset, Vector3 extents) |
override void | UnCombine (PhysicsScene pScene) |
override Dictionary< uint, float > | GetTopColliders () |
override object | Extension (string pFunct, params object[] pParams) |
void | TaintedObject (string pOriginator, string pIdent, TaintCallback pCallback) |
void | TaintedObject (uint pOriginator, String pIdent, TaintCallback pCallback) |
void | TaintedObject (bool inTaintTime, String pIdent, TaintCallback pCallback) |
void | TaintedObject (bool inTaintTime, uint pOriginator, String pIdent, TaintCallback pCallback) |
void | TaintedObject (bool inTaintTime, string pOriginator, string pIdent, TaintCallback pCallback) |
void | ProcessTaints () |
void | PostTaintObject (String ident, uint ID, TaintCallback callback) |
bool | AssertInTaintTime (string whereFrom) |
PhysParameterEntry[] | GetParameterList () |
bool | SetPhysicsParameter (string parm, string val, uint localID) |
bool | GetPhysicsParameter (string parm, out string value) |
void | DetailLog (string msg, params Object[] args) |
Public Member Functions inherited from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene | |
virtual void | TriggerPhysicsBasedRestart () |
virtual PhysicsActor | AddAvatar (uint localID, string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) |
Add an avatar More... | |
virtual PhysicsActor | AddAvatar (uint localID, string avName, Vector3 position, Vector3 size, bool isFlying) |
virtual PhysicsActor | AddPrimShape (string primName, PhysicsActor parent, PrimitiveBaseShape pbs, Vector3 position, uint localid, byte[] sdata) |
virtual PhysicsActor | AddPrimShape (string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, uint localid) |
virtual PhysicsActor | AddPrimShape (string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, byte shapetype, uint localid) |
virtual PhysicsJoint | RequestJointCreation (string objectNameInScene, PhysicsJointType jointType, Vector3 position, Quaternion rotation, string parms, List< string > bodyNames, string trackedBodyName, Quaternion localRotation) |
virtual void | RequestJointDeletion (string objectNameInScene) |
virtual void | RemoveAllJointsConnectedToActorThreadLocked (PhysicsActor actor) |
virtual void | DumpJointInfo () |
virtual Vector3 | GetJointAnchor (PhysicsJoint joint) |
virtual Vector3 | GetJointAxis (PhysicsJoint joint) |
virtual void | ProcessPreSimulation () |
virtual Dictionary< string, float > | GetStats () |
Get statistics about this scene. More... | |
virtual bool | SupportsRayCast () |
True if the physics plugin supports raycasting against the physics scene More... | |
virtual void | CombineTerrain (float[] heightMap, Vector3 pOffset) |
virtual void | RaycastWorld (Vector3 position, Vector3 direction, float length, RaycastCallback retMethod) |
Queue a raycast against the physics scene. The provided callback method will be called when the raycast is complete More... | |
virtual void | RaycastWorld (Vector3 position, Vector3 direction, float length, int Count, RayCallback retMethod) |
virtual List< ContactResult > | RaycastWorld (Vector3 position, Vector3 direction, float length, int Count) |
virtual object | RaycastWorld (Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags filter) |
virtual bool | SupportsRaycastWorldFiltered () |
virtual List< ContactResult > | RaycastActor (PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags flags) |
virtual List< ContactResult > | BoxProbe (Vector3 position, Vector3 size, Quaternion orientation, int Count, RayFilterFlags flags) |
virtual List< ContactResult > | SphereProbe (Vector3 position, float radius, int Count, RayFilterFlags flags) |
virtual List< ContactResult > | PlaneProbe (PhysicsActor actor, Vector4 plane, int Count, RayFilterFlags flags) |
virtual int | SitAvatar (PhysicsActor actor, Vector3 AbsolutePosition, Vector3 CameraPosition, Vector3 offset, Vector3 AvatarSize, SitAvatarCallback PhysicsSitResponse) |
Static Public Member Functions | |
static string | PrimitiveBaseShapeToString (PrimitiveBaseShape pbs) |
Public Attributes | |
string | BulletSimVersion = "?" |
BSAPITemplate | PE |
Thread | m_physicsThread |
Dictionary< uint, BSPhysObject > | PhysObjects |
BSShapeCollection | Shapes |
HashSet< BSPhysObject > | ObjectsWithCollisions = new HashSet<BSPhysObject>() |
HashSet< BSPhysObject > | ObjectsWithNoMoreCollisions = new HashSet<BSPhysObject>() |
Object | CollisionLock = new Object() |
Object | UpdateLock = new Object() |
HashSet< BSPhysObject > | ObjectsWithUpdates = new HashSet<BSPhysObject>() |
IMesher | mesher |
const uint | TERRAIN_ID = 0 |
const uint | GROUNDPLANE_ID = 1 |
const uint | CHILDTERRAIN_ID = 2 |
LogWriter | PhysicsLogging |
const string | DetailLogZero = "0000000000" |
Static Public Attributes | |
static long | NotASimulationStep = -1234 |
Properties | |
string | RegionName [get, set] |
string | BulletEngineName [get, set] |
ILog | Logger [get] |
uint | WorldID [get, set] |
BulletWorld | World [get, set] |
BSConstraintCollection | Constraints [get, set] |
long | SimulationStep [get] |
int | SimulationNowTime [get, set] |
bool | InTaintTime [get, set] |
float | SimpleWaterLevel [get, set] |
BSTerrainManager | TerrainManager [get, set] |
ConfigurationParameters | Params [get] |
Vector3 | DefaultGravity [get] |
float | DefaultGravityZ [get] |
int | PhysicsMetricDumpFrames [get, set] |
bool | VehicleLoggingEnabled [get, set] |
bool | VehiclePhysicalLoggingEnabled [get, set] |
string | Name [get] |
Type | ReplaceableInterface [get] |
override bool | IsThreaded [get] |
Properties inherited from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene | |
string | PhysicsSceneName [get, set] |
A unique identifying string for this instance of the physics engine. Useful in debug messages to distinguish one OdeScene instance from another. Usually set to include the region name that the physics engine is acting for. More... | |
string | EngineType [get, set] |
A string identifying the family of this physics engine. Most common values returned are "OpenDynamicsEngine" and "BulletSim" but others are possible. More... | |
static PhysicsScene | Null [get] |
RequestAssetDelegate | RequestAssetMethod [get, set] |
virtual float | TimeDilation [get] |
virtual bool | SupportsNINJAJoints [get] |
abstract bool | IsThreaded [get] |
Properties inherited from OpenSim.Region.Framework.Interfaces.IRegionModuleBase | |
string | Name [get] |
Type | ReplaceableInterface [get] |
If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene | |
void | Initialise (RequestAssetDelegate m, float[] terrain, float waterHeight) |
virtual void | DoJointMoved (PhysicsJoint joint) |
virtual void | DoJointDeactivated (PhysicsJoint joint) |
virtual void | DoJointErrorMessage (PhysicsJoint joint, string message) |
Definition at line 47 of file BSScene.cs.
|
inlinevirtual |
Add an avatar
avName | |
position | |
velocity | |
size | |
isFlying |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 520 of file BSScene.cs.
|
inlinevirtual |
Reimplemented from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 526 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 619 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 602 of file BSScene.cs.
|
inline |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 240 of file BSScene.cs.
|
inline |
Definition at line 1214 of file BSScene.cs.
|
inline |
Definition at line 895 of file BSScene.cs.
|
inline |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 236 of file BSScene.cs.
|
inlinevirtual |
Reimplemented from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 959 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 946 of file BSScene.cs.
|
inline |
Definition at line 1325 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 474 of file BSScene.cs.
|
inlinevirtual |
Reimplemented from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 994 of file BSScene.cs.
|
inline |
Implements OpenSim.Region.PhysicsModules.SharedBase.IPhysicsParameters.
Definition at line 1229 of file BSScene.cs.
|
inline |
Implements OpenSim.Region.PhysicsModules.SharedBase.IPhysicsParameters.
Definition at line 1308 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 933 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 972 of file BSScene.cs.
|
inline |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created.
source | A IConfigSource |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 220 of file BSScene.cs.
delegate void OpenSim.Region.PhysicsModule.BulletS.BSScene.PostStepAction | ( | float | timeStep | ) |
|
inline |
Definition at line 1173 of file BSScene.cs.
|
inline |
Definition at line 772 of file BSScene.cs.
delegate void OpenSim.Region.PhysicsModule.BulletS.BSScene.PreStepAction | ( | float | timeStep | ) |
|
inlinestatic |
|
inline |
Definition at line 1136 of file BSScene.cs.
|
inline |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 265 of file BSScene.cs.
|
inlinevirtual |
Remove an avatar.
actor |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 545 of file BSScene.cs.
|
inlinevirtual |
Remove a prim.
prim |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 576 of file BSScene.cs.
|
inline |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 259 of file BSScene.cs.
|
inline |
Implements OpenSim.Region.PhysicsModules.SharedBase.IPhysicsParameters.
Definition at line 1241 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 937 of file BSScene.cs.
|
inlinevirtual |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 941 of file BSScene.cs.
|
inlinevirtual |
Perform a simulation of the current physics scene over the given timestep.
timeStep |
Implements OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 631 of file BSScene.cs.
|
inlinevirtual |
Reimplemented from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 952 of file BSScene.cs.
delegate void OpenSim.Region.PhysicsModule.BulletS.BSScene.TaintCallback | ( | ) |
|
inline |
Definition at line 1084 of file BSScene.cs.
|
inline |
Definition at line 1088 of file BSScene.cs.
|
inline |
Definition at line 1092 of file BSScene.cs.
|
inline |
Definition at line 1096 of file BSScene.cs.
|
inline |
Definition at line 1102 of file BSScene.cs.
|
inlinevirtual |
Reimplemented from OpenSim.Region.PhysicsModules.SharedBase.PhysicsScene.
Definition at line 965 of file BSScene.cs.
string OpenSim.Region.PhysicsModule.BulletS.BSScene.BulletSimVersion = "?" |
Definition at line 58 of file BSScene.cs.
const uint OpenSim.Region.PhysicsModule.BulletS.BSScene.CHILDTERRAIN_ID = 2 |
Definition at line 145 of file BSScene.cs.
Object OpenSim.Region.PhysicsModule.BulletS.BSScene.CollisionLock = new Object() |
Definition at line 75 of file BSScene.cs.
const string OpenSim.Region.PhysicsModule.BulletS.BSScene.DetailLogZero = "0000000000" |
Definition at line 1330 of file BSScene.cs.
const uint OpenSim.Region.PhysicsModule.BulletS.BSScene.GROUNDPLANE_ID = 1 |
Definition at line 144 of file BSScene.cs.
Thread OpenSim.Region.PhysicsModule.BulletS.BSScene.m_physicsThread |
Definition at line 65 of file BSScene.cs.
IMesher OpenSim.Region.PhysicsModule.BulletS.BSScene.mesher |
Definition at line 89 of file BSScene.cs.
|
static |
Definition at line 108 of file BSScene.cs.
HashSet<BSPhysObject> OpenSim.Region.PhysicsModule.BulletS.BSScene.ObjectsWithCollisions = new HashSet<BSPhysObject>() |
Definition at line 71 of file BSScene.cs.
HashSet<BSPhysObject> OpenSim.Region.PhysicsModule.BulletS.BSScene.ObjectsWithNoMoreCollisions = new HashSet<BSPhysObject>() |
Definition at line 72 of file BSScene.cs.
HashSet<BSPhysObject> OpenSim.Region.PhysicsModule.BulletS.BSScene.ObjectsWithUpdates = new HashSet<BSPhysObject>() |
Definition at line 79 of file BSScene.cs.
BSAPITemplate OpenSim.Region.PhysicsModule.BulletS.BSScene.PE |
Definition at line 62 of file BSScene.cs.
LogWriter OpenSim.Region.PhysicsModule.BulletS.BSScene.PhysicsLogging |
Definition at line 197 of file BSScene.cs.
Dictionary<uint, BSPhysObject> OpenSim.Region.PhysicsModule.BulletS.BSScene.PhysObjects |
Definition at line 67 of file BSScene.cs.
BSShapeCollection OpenSim.Region.PhysicsModule.BulletS.BSScene.Shapes |
Definition at line 68 of file BSScene.cs.
const uint OpenSim.Region.PhysicsModule.BulletS.BSScene.TERRAIN_ID = 0 |
Definition at line 143 of file BSScene.cs.
Object OpenSim.Region.PhysicsModule.BulletS.BSScene.UpdateLock = new Object() |
Definition at line 78 of file BSScene.cs.
|
getset |
Definition at line 61 of file BSScene.cs.
|
getset |
Definition at line 94 of file BSScene.cs.
|
get |
Definition at line 155 of file BSScene.cs.
|
get |
Definition at line 160 of file BSScene.cs.
|
getset |
Definition at line 129 of file BSScene.cs.
|
get |
Definition at line 991 of file BSScene.cs.
|
get |
Definition at line 87 of file BSScene.cs.
|
get |
Definition at line 211 of file BSScene.cs.
|
get |
Definition at line 151 of file BSScene.cs.
|
getset |
Definition at line 204 of file BSScene.cs.
|
getset |
Definition at line 56 of file BSScene.cs.
|
get |
Definition at line 216 of file BSScene.cs.
|
getset |
Definition at line 147 of file BSScene.cs.
|
getset |
Definition at line 122 of file BSScene.cs.
|
get |
Definition at line 105 of file BSScene.cs.
|
getset |
Definition at line 148 of file BSScene.cs.
|
getset |
Definition at line 206 of file BSScene.cs.
|
getset |
Definition at line 207 of file BSScene.cs.
|
getset |
Definition at line 91 of file BSScene.cs.
|
getset |
Definition at line 90 of file BSScene.cs.
PostStepAction OpenSim.Region.PhysicsModule.BulletS.BSScene.AfterStep |
Definition at line 118 of file BSScene.cs.
PreStepAction OpenSim.Region.PhysicsModule.BulletS.BSScene.BeforeStep |
Definition at line 117 of file BSScene.cs.