OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Enumerations | Functions
Package OpenSim.Region.PhysicsModules.SharedBase

Classes

class  CollisionLocker
 
interface  IMesher
 
interface  IVertex
 
struct  AMeshKey
 
interface  IMesh
 
struct  PhysParameterEntry
 
interface  IPhysicsParameters
 
class  NullPhysicsScene
 
struct  ContactPoint
 
struct  ContactData
 
class  CollisionEventUpdate
 Used to pass collision information to OnCollisionUpdate listeners. More...
 
class  PhysicsActor
 
class  NullPhysicsActor
 
class  PhysicsJoint
 
struct  ContactResult
 Contact result from a raycast. More...
 
class  PhysicsScene
 
class  PhysicsSensor
 
class  NullPhysicsSensor
 
struct  VehicleData
 

Enumerations

enum  LevelOfDetail { LevelOfDetail.High = 32, LevelOfDetail.Medium = 16, LevelOfDetail.Low = 8, LevelOfDetail.VeryLow = 4 }
 
enum  ActorTypes : int {
  ActorTypes.Unknown = 0, ActorTypes.Agent = 1, ActorTypes.Prim = 2, ActorTypes.Ground = 3,
  ActorTypes.Water = 4
}
 
enum  PIDHoverType { PIDHoverType.Ground, PIDHoverType.GroundAndWater, PIDHoverType.Water, PIDHoverType.Absolute }
 
enum  PhysicsJointType : int { PhysicsJointType.Ball = 0, PhysicsJointType.Hinge = 1 }
 
enum  RayFilterFlags : ushort {
  RayFilterFlags.water = 0x01, RayFilterFlags.land = 0x02, RayFilterFlags.agent = 0x04, RayFilterFlags.nonphysical = 0x08,
  RayFilterFlags.physical = 0x10, RayFilterFlags.phantom = 0x20, RayFilterFlags.volumedtc = 0x40, RayFilterFlags.ContactsUnImportant = 0x2000,
  RayFilterFlags.BackFaceCull = 0x4000, RayFilterFlags.ClosestHit = 0x8000, RayFilterFlags.LSLPhantom = phantom | volumedtc, RayFilterFlags.PrimsNonPhantom = nonphysical | physical,
  RayFilterFlags.PrimsNonPhantomAgents = nonphysical | physical | agent, RayFilterFlags.AllPrims = nonphysical | phantom | volumedtc | physical, RayFilterFlags.AllButLand = agent | nonphysical | physical | phantom | volumedtc, RayFilterFlags.ClosestAndBackCull = ClosestHit | BackFaceCull,
  RayFilterFlags.All = 0x3f
}
 
enum  SenseType : uint {
  SenseType.NONE = 0, SenseType.AGENT = 1, SenseType.ACTIVE = 2, SenseType.PASSIVE = 3,
  SenseType.SCRIPTED = 4
}
 
enum  Vehicle : int {
  Vehicle.TYPE_NONE = 0, Vehicle.TYPE_SLED = 1, Vehicle.TYPE_CAR = 2, Vehicle.TYPE_BOAT = 3,
  Vehicle.TYPE_AIRPLANE = 4, Vehicle.TYPE_BALLOON = 5, Vehicle.LINEAR_FRICTION_TIMESCALE = 16, Vehicle.ANGULAR_FRICTION_TIMESCALE = 17,
  Vehicle.LINEAR_MOTOR_DIRECTION = 18, Vehicle.LINEAR_MOTOR_OFFSET = 20, Vehicle.ANGULAR_MOTOR_DIRECTION = 19, Vehicle.HOVER_HEIGHT = 24,
  Vehicle.HOVER_EFFICIENCY = 25, Vehicle.HOVER_TIMESCALE = 26, Vehicle.BUOYANCY = 27, Vehicle.LINEAR_DEFLECTION_EFFICIENCY = 28,
  Vehicle.LINEAR_DEFLECTION_TIMESCALE = 29, Vehicle.LINEAR_MOTOR_TIMESCALE = 30, Vehicle.LINEAR_MOTOR_DECAY_TIMESCALE = 31, Vehicle.ANGULAR_DEFLECTION_EFFICIENCY = 32,
  Vehicle.ANGULAR_DEFLECTION_TIMESCALE = 33, Vehicle.ANGULAR_MOTOR_TIMESCALE = 34, Vehicle.ANGULAR_MOTOR_DECAY_TIMESCALE = 35, Vehicle.VERTICAL_ATTRACTION_EFFICIENCY = 36,
  Vehicle.VERTICAL_ATTRACTION_TIMESCALE = 37, Vehicle.BANKING_EFFICIENCY = 38, Vehicle.BANKING_MIX = 39, Vehicle.BANKING_TIMESCALE = 40,
  Vehicle.REFERENCE_FRAME = 44, Vehicle.BLOCK_EXIT = 45, Vehicle.ROLL_FRAME = 46
}
 
enum  VehicleFlag {
  VehicleFlag.NO_DEFLECTION_UP = 1, VehicleFlag.LIMIT_ROLL_ONLY = 2, VehicleFlag.HOVER_WATER_ONLY = 4, VehicleFlag.HOVER_TERRAIN_ONLY = 8,
  VehicleFlag.HOVER_GLOBAL_HEIGHT = 16, VehicleFlag.HOVER_UP_ONLY = 32, VehicleFlag.LIMIT_MOTOR_UP = 64, VehicleFlag.MOUSELOOK_STEER = 128,
  VehicleFlag.MOUSELOOK_BANK = 256, VehicleFlag.CAMERA_DECOUPLED = 512, VehicleFlag.NO_X = 1024, VehicleFlag.NO_Y = 2048,
  VehicleFlag.NO_Z = 4096, VehicleFlag.LOCK_HOVER_HEIGHT = 8192, VehicleFlag.NO_DEFLECTION = 16392, VehicleFlag.LOCK_ROTATION = 32784
}
 

Functions

delegate void PositionUpdate (Vector3 position)
 
delegate void VelocityUpdate (Vector3 velocity)
 
delegate void OrientationUpdate (Quaternion orientation)
 
delegate void physicsCrash ()
 
delegate void RaycastCallback (bool hitYN, Vector3 collisionPoint, uint localid, float distance, Vector3 normal)
 
delegate void RayCallback (List< ContactResult > list)
 
delegate void ProbeBoxCallback (List< ContactResult > list)
 
delegate void ProbeSphereCallback (List< ContactResult > list)
 
delegate void ProbePlaneCallback (List< ContactResult > list)
 
delegate void SitAvatarCallback (int status, uint partID, Vector3 offset, Quaternion Orientation)
 
delegate void JointMoved (PhysicsJoint joint)
 
delegate void JointDeactivated (PhysicsJoint joint)
 
delegate void JointErrorMessage (PhysicsJoint joint, string message)
 
delegate void RequestAssetDelegate (UUID assetID, AssetReceivedDelegate callback)
 
delegate void AssetReceivedDelegate (AssetBase asset)
 

Enumeration Type Documentation

Enumerator
Unknown 
Agent 
Prim 
Ground 
Water 

Definition at line 41 of file PhysicsActor.cs.

Enumerator
High 
Medium 
Low 
VeryLow 

Definition at line 51 of file IMesher.cs.

Enumerator
Ball 
Hinge 

Definition at line 35 of file PhysicsJoint.cs.

Enumerator
Ground 
GroundAndWater 
Water 
Absolute 

Definition at line 50 of file PhysicsActor.cs.

Enumerator
water 
land 
agent 
nonphysical 
physical 
phantom 
volumedtc 
ContactsUnImportant 
BackFaceCull 
ClosestHit 
LSLPhantom 
PrimsNonPhantom 
PrimsNonPhantomAgents 
AllPrims 
AllButLand 
ClosestAndBackCull 
All 

Definition at line 53 of file PhysicsScene.cs.

Enumerator
NONE 
AGENT 
ACTIVE 
PASSIVE 
SCRIPTED 

Definition at line 35 of file PhysicsSensor.cs.

Enumerator
TYPE_NONE 

Turns off Vehicle Support

TYPE_SLED 

No Angular motor, High Left right friction, No Hover, Linear Deflection 1, no angular deflection no vertical attractor, No banking, Identity rotation frame

TYPE_CAR 

Needs Motors to be driven by timer or control events High left/right friction, No angular friction Linear Motor wins in a second, decays in 60 seconds. Angular motor wins in a second, decays in 8/10ths of a second linear deflection 2 seconds Vertical Attractor locked UP

TYPE_BOAT 
TYPE_AIRPLANE 
TYPE_BALLOON 
LINEAR_FRICTION_TIMESCALE 
ANGULAR_FRICTION_TIMESCALE 

vector of timescales for exponential decay of angular velocity about three axis

LINEAR_MOTOR_DIRECTION 

linear velocity vehicle will try for

LINEAR_MOTOR_OFFSET 

Offset from center of mass where linear motor forces are added

ANGULAR_MOTOR_DIRECTION 

angular velocity that vehicle will try for

HOVER_HEIGHT 
HOVER_EFFICIENCY 
HOVER_TIMESCALE 
BUOYANCY 
LINEAR_DEFLECTION_EFFICIENCY 
LINEAR_DEFLECTION_TIMESCALE 
LINEAR_MOTOR_TIMESCALE 
LINEAR_MOTOR_DECAY_TIMESCALE 
ANGULAR_DEFLECTION_EFFICIENCY 

slide between 0 and 1

ANGULAR_DEFLECTION_TIMESCALE 
ANGULAR_MOTOR_TIMESCALE 
ANGULAR_MOTOR_DECAY_TIMESCALE 
VERTICAL_ATTRACTION_EFFICIENCY 
VERTICAL_ATTRACTION_TIMESCALE 
BANKING_EFFICIENCY 
BANKING_MIX 
BANKING_TIMESCALE 
REFERENCE_FRAME 
BLOCK_EXIT 
ROLL_FRAME 

Definition at line 33 of file VehicleConstants.cs.

Enumerator
NO_DEFLECTION_UP 
LIMIT_ROLL_ONLY 
HOVER_WATER_ONLY 
HOVER_TERRAIN_ONLY 
HOVER_GLOBAL_HEIGHT 
HOVER_UP_ONLY 
LIMIT_MOTOR_UP 
MOUSELOOK_STEER 
MOUSELOOK_BANK 
CAMERA_DECOUPLED 
NO_X 
NO_Y 
NO_Z 
LOCK_HOVER_HEIGHT 
NO_DEFLECTION 
LOCK_ROTATION 

Definition at line 102 of file VehicleConstants.cs.

Function Documentation

delegate void OpenSim.Region.PhysicsModules.SharedBase.AssetReceivedDelegate ( AssetBase  asset)
delegate void OpenSim.Region.PhysicsModules.SharedBase.JointDeactivated ( PhysicsJoint  joint)
delegate void OpenSim.Region.PhysicsModules.SharedBase.JointErrorMessage ( PhysicsJoint  joint,
string  message 
)
delegate void OpenSim.Region.PhysicsModules.SharedBase.JointMoved ( PhysicsJoint  joint)
delegate void OpenSim.Region.PhysicsModules.SharedBase.OrientationUpdate ( Quaternion  orientation)
delegate void OpenSim.Region.PhysicsModules.SharedBase.physicsCrash ( )

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.PositionUpdate ( Vector3  position)
delegate void OpenSim.Region.PhysicsModules.SharedBase.ProbeBoxCallback ( List< ContactResult >  list)

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.ProbePlaneCallback ( List< ContactResult >  list)

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.ProbeSphereCallback ( List< ContactResult >  list)

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.RayCallback ( List< ContactResult >  list)

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.RaycastCallback ( bool  hitYN,
Vector3  collisionPoint,
uint  localid,
float  distance,
Vector3  normal 
)

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.RequestAssetDelegate ( UUID  assetID,
AssetReceivedDelegate  callback 
)

Here is the caller graph for this function:

delegate void OpenSim.Region.PhysicsModules.SharedBase.SitAvatarCallback ( int  status,
uint  partID,
Vector3  offset,
Quaternion  Orientation 
)
delegate void OpenSim.Region.PhysicsModules.SharedBase.VelocityUpdate ( Vector3  velocity)