OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
OpenSim.Region.Framework.Scenes.ScenePresence Class Reference
Inheritance diagram for OpenSim.Region.Framework.Scenes.ScenePresence:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Region.Framework.Scenes.ScenePresence:
Collaboration graph
[legend]

Public Member Functions

void TriggerScenePresenceUpdated ()
 
void sitSOGmoved ()
 
Quaternion GetWorldRotation ()
 Gets the world rotation of this presence. More...
 
Vector3 GetWorldVelocity ()
 Get velocity relative to the world. More...
 
void AdjustKnownSeeds ()
 
void DumpKnownRegions ()
 
 ScenePresence (IClientAPI client, Scene world, AvatarAppearance appearance, PresenceType type)
 
void RegisterToEvents ()
 
int GetStateSource ()
 Force viewers to show the avatar's current name. More...
 
void MakeChildAgent (ulong newRegionHandle)
 This turns a root agent into a child agent More...
 
void RemoveFromPhysicalScene ()
 Removes physics plugin scene representation of this agent if it exists. More...
 
void Teleport (Vector3 pos)
 Do not call this directly. Call Scene.RequestTeleportLocation() instead. More...
 
void TeleportWithMomentum (Vector3 pos, Vector3?v)
 
void avnLocalTeleport (Vector3 newpos, Vector3?newvel, bool rotateToVelXY)
 
void StopFlying ()
 
void AddNeighbourRegionSizeInfo (GridRegion region)
 
void SetNeighbourRegionSizeInfo (List< GridRegion > regionsList)
 
void RemoveNeighbourRegion (ulong regionHandle)
 
void DropOldNeighbours (List< ulong > oldRegions)
 
void DropThisRootRegionFromNeighbours ()
 
void SetHeight (float height)
 Sets avatar height in the physics plugin More...
 
void SetSize (Vector3 size, float feetoffset)
 
void CompleteMovement (IClientAPI client, bool openChildAgents)
 Complete Avatar's movement into the region. More...
 
void RayCastCameraCallback (bool hitYN, Vector3 collisionPoint, uint localid, float distance, Vector3 pNormal)
 
void HandleAgentUpdate (IClientAPI remoteClient, AgentUpdateArgs agentData)
 This is the event handler for client movement. If a client is moving, this event is triggering. More...
 
bool HandleMoveToTargetUpdate (float tolerance, ref Vector3 agent_control_v3)
 Calculate an update to move the presence to the set target. More...
 
void MoveToTarget (Vector3 pos, bool noFly, bool landAtTarget)
 Move to the given target over time. More...
 
void ResetMoveToTarget ()
 Reset the move to target. More...
 
void StandUp ()
 Perform the logic necessary to stand the avatar up. This method also executes the stand animation. More...
 
void HandleAgentRequestSit (IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset)
 
bool PhysicsSit (SceneObjectPart part, Vector3 offset)
 
void PhysicsSitResponse (int status, uint partID, Vector3 offset, Quaternion Orientation)
 
void HandleAgentSit (IClientAPI remoteClient, UUID agentID)
 
void HandleAgentSitOnGround ()
 
void HandleSetAlwaysRun (IClientAPI remoteClient, bool pSetAlwaysRun)
 Event handler for the 'Always run' setting on the client Tells the physics plugin to increase speed of movement. More...
 
void HandleStartAnim (IClientAPI remoteClient, UUID animID)
 
void HandleStopAnim (IClientAPI remoteClient, UUID animID)
 
void avnHandleChangeAnim (UUID animID, bool addRemove, bool sendPack)
 
void AddNewMovement (Vector3 vec, float thisAddSpeedModifier=1, bool breaking=false)
 Rotate the avatar to the given rotation and apply a movement in the given relative vector More...
 
override void Update ()
 Performs any updates that need to be done at each frame, as opposed to immediately. These included scheduled updates and updates that occur due to physics processing. More...
 
void SendUpdateToAgent (ScenePresence p)
 
void SendFullUpdateToClient (IClientAPI remoteClient)
 
void SendAgentTerseUpdate (ISceneEntity p)
 
void SendTerseUpdateToClient (IClientAPI remoteClient)
 Sends a location update to the client connected to this scenePresence via entity updates More...
 
void SendTerseUpdateToAgent (ScenePresence p)
 
void SendTerseUpdateToAgentNF (ScenePresence p)
 
void SendTerseUpdateToAllClients ()
 Send a location/velocity/accelleration update to all agents in scene More...
 
void SendCoarseLocations (List< Vector3 > coarseLocations, List< UUID > avatarUUIDs)
 
void SetSendCoarseLocationMethod (SendCoarseLocationsMethod d)
 
void SendCoarseLocationsDefault (UUID sceneId, ScenePresence p, List< Vector3 > coarseLocations, List< UUID > avatarUUIDs)
 
void SendInitialDataToMe ()
 Send initial scene data to the client controlling this agent More...
 
void SendOtherAgentsAvatarFullToMe ()
 Send avatar full data appearance and animations for all other root agents to this agent, this agent can be either a child or root More...
 
void SendAvatarDataToAllAgents ()
 Send this agent's avatar data to all other root and child agents in the scene This agent must be root. This avatar will receive its own update. More...
 
void SendInitialAvatarDataToAllAgents (List< ScenePresence > presences)
 
void SendInitialAvatarDataToAgent (ScenePresence p)
 
void SendAvatarDataToAgent (ScenePresence avatar)
 Send avatar data to an agent. More...
 
void SendAvatarDataToAgentNF (ScenePresence avatar)
 
void SendAppearanceToAllOtherAgents ()
 Send this agent's appearance to all other root and child agents in the scene This agent must be root. More...
 
void SendAppearanceToAgent (ScenePresence avatar)
 
void SendAppearanceToAgentNF (ScenePresence avatar)
 
void SendAnimPackToAgent (ScenePresence p)
 
void SendAnimPackToAgent (ScenePresence p, UUID[] animations, int[] seqs, UUID[] objectIDs)
 
void SendAnimPackToAgentNF (ScenePresence p)
 
void SendAnimPackToAgentNF (ScenePresence p, UUID[] animations, int[] seqs, UUID[] objectIDs)
 
void SendAnimPack (UUID[] animations, int[] seqs, UUID[] objectIDs)
 
void CrossToNewRegionFail ()
 
void CloseChildAgents (bool logout, ulong newRegionHandle, int newRegionSizeX, int newRegionSizeY)
 Computes which child agents to close when the scene presence moves to another region. Removes those regions from m_knownRegions. More...
 
void GrantGodlikePowers (UUID agentID, UUID sessionID, UUID token, bool godStatus)
 This allows the Sim owner the abiility to kick users from their sim currently. It tells the client that the agent has permission to do so. More...
 
void UpdateChildAgent (AgentData cAgentData)
 
void UpdateChildAgent (AgentPosition cAgentData, uint tRegionX, uint tRegionY, uint rRegionX, uint rRegionY)
 This updates important decision making data about a child agent The main purpose is to figure out what objects to send to a child agent that's in a neighboring region More...
 
void CopyTo (AgentData cAgent)
 
bool CopyAgent (out IAgentData agent)
 
void UpdateMovement ()
 Handles part of the PID controller function for moving an avatar. More...
 
void AddToPhysicalScene (bool isFlying)
 Adds a physical representation of the avatar to the Physics plugin More...
 
void PhysicsCollisionUpdate (EventArgs e)
 Event called by the physics plugin to tell the avatar about a collision. More...
 
void setHealthWithUpdate (float health)
 
void AddAttachment (SceneObjectGroup gobj)
 
List< SceneObjectGroupGetAttachments ()
 Get all the presence's attachments. More...
 
List< SceneObjectGroupGetAttachments (uint attachmentPoint)
 Get the scene objects attached to the given point. More...
 
bool HasAttachments ()
 Does this avatar have any attachments? More...
 
int ScriptCount ()
 Returns the total count of scripts in all parts inventories. More...
 
float ScriptExecutionTime ()
 A float the value is a representative execution time in milliseconds of all scripts in all attachments. More...
 
int RunningScriptCount ()
 Returns the total count of running scripts in all parts. More...
 
bool HasScriptedAttachments ()
 
void RemoveAttachment (SceneObjectGroup gobj)
 
void ClearAttachments ()
 Clear all attachments More...
 
bool ValidateAttachments ()
 This is currently just being done for information. More...
 
void SendAttachmentsToAllAgents ()
 
void SendAttachmentsToAgentNF (ScenePresence p)
 
void SendAttachmentFullUpdateToAgentNF (SceneObjectGroup sog, ScenePresence p)
 
void SendAttachmentScheduleUpdate (SceneObjectGroup sog)
 
void SendAttachmentUpdate (SceneObjectGroup sog, UpdateRequired UpdateFlag)
 
void SendAttachmentScheduleUpdate (SceneObjectPart part)
 
void SendAttachmentUpdate (SceneObjectPart part, UpdateRequired UpdateFlag)
 
void SendScriptEventToAttachments (string eventName, Object[] args)
 Send a script event to this scene presence's attachments More...
 
float GetMass ()
 Gets the mass. More...
 
void RegisterControlEventsToScript (int controls, int accept, int pass_on, uint Obj_localID, UUID Script_item_UUID)
 
void HandleForceReleaseControls (IClientAPI remoteClient, UUID agentID)
 
void ClearControls ()
 
void UnRegisterSeatControls (UUID obj)
 
void UnRegisterControlEventsToScript (uint Obj_localID, UUID Script_item_UUID)
 
void HasMovedAway (bool nearRegion)
 
void SendKillTo (ScenePresence p)
 
void SendViewTo (ScenePresence p)
 
void SetAnimationOverride (string animState, UUID animID)
 
UUID GetAnimationOverride (string animState)
 
- Public Member Functions inherited from OpenSim.Region.Framework.Scenes.EntityBase
 EntityBase ()
 Creates a new Entity (should not occur on it's own) More...
 
virtual EntityBase Copy ()
 Copies the entity More...
 

Public Attributes

bool LegacySitOffsets = true
 
String sitAnimation = "SIT"
 
Vector3 lastKnownAllowedPosition
 
bool sentMessageAboutRestrictedParcelFlyingDown
 
Vector4 CollisionPlane = Vector4.UnitW
 
const float AgentControlNudgeVel = 1.0f
 
const float AgentControlNormalVel = 1.0f
 

Static Public Attributes

static readonly Vector3 SIT_TARGET_ADJUSTMENT = new Vector3(0.0f, 0.0f, 0.4f)
 Experimentally determined "fudge factor" to make sit-target positions the same as in SecondLife. Fudge factor was tested for 36 different test cases including prims of type box, sphere, cylinder, and torus, with varying parameters for sit target location, prim size, prim rotation, prim cut, prim twist, prim taper, and prim shear. See mantis issue #1716 More...
 
static readonly float MOVEMENT = .25f
 Movement updates for agents in neighboring regions are sent directly to clients. This value only affects how often agent positions are sent to neighbor regions for things such as distance-based update prioritization this are the square of real distances More...
 
static readonly float SIGNIFICANT_MOVEMENT = 16.0f
 
static readonly float CHILDUPDATES_MOVEMENT = 100.0f
 
static readonly float CHILDUPDATES_TIME = 10000f
 

Protected Member Functions

void CheckForSignificantMovement ()
 This checks for a significant movement and sends a coarselocationchange update More...
 
void CheckForBorderCrossing ()
 Starts the process of moving an avatar into another region if they are crossing the border. More...
 
bool CrossToNewRegion ()
 Moves the agent outside the region bounds Tells neighbor region that we're crossing to it If the neighbor accepts, remove the agent's viewable avatar from this scene set them to a child agent. More...
 

Protected Attributes

ulong crossingFromRegion
 
int m_reprioritizationLastTime
 
bool m_reprioritizationBusy
 
Vector3 m_reprioritizationLastPosition
 
AvatarAppearance m_appearance
 
- Protected Attributes inherited from OpenSim.Region.Framework.Scenes.EntityBase
Scene m_scene
 
UUID m_uuid
 
string m_name
 
Vector3 m_pos
 
Vector3 m_velocity
 
Vector3 m_rotationalvelocity
 
uint m_localId
 

Properties

bool isNPC [get, set]
 
PresenceType PresenceType [get, set]
 
ScenePresenceState LifecycleState [get, set]
 The current state of this presence. Governs only the existence lifecycle. See ScenePresenceStateMachine for more details. More...
 
UUID currentParcelUUID [get, set]
 
bool ParcelAllowThisAvatarSounds [get]
 
bool ParcelHideThisAvatar [get]
 
ScenePresenceAnimator Animator [get, set]
 
MovementAnimationOverrides Overrides [get, set]
 
Object AttachmentsSyncLock [get, set]
 
int UserFlags [get]
 
bool Flying [get, set]
 
bool IsColliding [get, set]
 
TeleportFlags TeleportFlags [get, set]
 
bool SitGround [get, set]
 Are we sitting on the ground? More...
 
bool MovingToTarget [get, set]
 
Vector3 MoveToPositionTarget [get, set]
 
bool LandAtTarget [get, set]
 Controls whether an avatar automatically moving to a target will land when it gets there (if flying). More...
 
Vector3 PrevSitOffset [get, set]
 
AvatarAppearance Appearance [get, set]
 
List< string > InTransitScriptStates [get, set]
 Copy of the script states while the agent is in transit. This state may need to be placed back in case of transfer fail. More...
 
bool DoNotCloseAfterTeleport [get, set]
 Used by the entity transfer module to signal when the presence should not be closed because a subsequent teleport is reusing the connection. More...
 
PhysicsActor PhysicsActor [get, set]
 Physical scene representation of this Avatar. More...
 
uint MovementFlag [get, set]
 Record user movement inputs. More...
 
bool AgentControlStopActive [get, set]
 Is the agent stop control flag currently active? More...
 
bool Invulnerable [get, set]
 
int UserLevel [get, set]
 
int GodLevel [get, set]
 
ulong RegionHandle [get, set]
 
Vector3 CameraPosition [get, set]
 
Quaternion CameraRotation [get]
 
Vector3 CameraAtAxis [get, set]
 
Vector3 CameraLeftAxis [get, set]
 
Vector3 CameraUpAxis [get, set]
 
Vector3 Lookat [get]
 
string Firstname [get, set]
 
string Lastname [get, set]
 
string Grouptitle [get, set]
 
bool UseFakeGroupTitle [get, set]
 When this is 'true', return a dummy group title instead of the real group title. This is used as part of a hack to force viewers to update the displayed avatar name. More...
 
float DrawDistance [get, set]
 
float RegionViewDistance [get]
 
bool AllowMovement [get, set]
 
bool SetAlwaysRun [get, set]
 
byte State [get, set]
 
uint AgentControlFlags [get, set]
 
IClientAPI ControllingClient [get, set]
 
IClientCore ClientView [get]
 
UUID COF [get, set]
 
override Vector3 AbsolutePosition [get, set]
 Position of this avatar relative to the region the avatar is in More...
 
Vector3 OffsetPosition [get, set]
 If sitting, returns the offset position from the prim the avatar is sitting on. Otherwise, returns absolute position in the scene. More...
 
override Vector3 Velocity [get, set]
 Current velocity of the avatar. More...
 
Quaternion Rotation [get, set]
 The rotation of the avatar. More...
 
Vector3 AngularVelocity [get]
 
bool IsChildAgent [get, set]
 
bool IsLoggingIn [get, set]
 
uint ParentID [get, set]
 If the avatar is sitting, the local ID of the prim that it's sitting on. If not sitting then zero. More...
 
UUID ParentUUID [get, set]
 
bool IsSatOnObject [get]
 Are we sitting on an object? More...
 
SceneObjectPart ParentPart [get, set]
 If the avatar is sitting, the prim that it's sitting on. If not sitting then null. More...
 
float Health [get, set]
 
bool IsInTransit [get, set]
 This signals whether the presence is in transit between neighbouring regions. More...
 
float SpeedModifier [get, set]
 
bool ForceFly [get, set]
 
bool FlyDisabled [get, set]
 
string Viewer [get]
 
Dictionary< ulong, string > KnownRegions [get, set]
 
List< ulong > KnownRegionHandles [get]
 
int KnownRegionCount [get]
 
- Properties inherited from OpenSim.Region.Framework.Scenes.EntityBase
Scene Scene [get]
 The scene to which this entity belongs More...
 
virtual UUID UUID [get, set]
 
virtual string Name [get, set]
 The name of this entity More...
 
bool IsDeleted [get, set]
 Signals whether this entity was in a scene but has since been removed from it. More...
 
virtual Vector3 AbsolutePosition [get, set]
 Absolute position of this entity in a scene. More...
 
virtual Vector3 Velocity [get, set]
 Current velocity of the entity. More...
 
virtual uint LocalId [get, set]
 
- Properties inherited from OpenSim.Framework.ISceneEntity
string Name [get, set]
 
UUID UUID [get]
 
uint LocalId [get]
 
Vector3 AbsolutePosition [get]
 
- Properties inherited from OpenSim.Region.Framework.Interfaces.IScenePresence
List< string > InTransitScriptStates [get]
 Copy of the script states while the agent is in transit. This state may need to be placed back in case of transfer fail. More...
 
Object AttachmentsSyncLock [get]
 The AttachmentsModule synchronizes on this to avoid race conditions between commands to add and remove attachments. More...
 
- Properties inherited from OpenSim.Framework.ISceneAgent
IClientAPI ControllingClient [get]
 
PresenceType PresenceType [get]
 What type of presence is this? User, NPC, etc. More...
 
bool IsChildAgent [get]
 If true, then the agent has no avatar in the scene. The agent exists to relay data from a region that neighbours the current position of the user's avatar. Occasionally data is relayed, such as which a user clicks an item in a neighbouring region. More...
 
AvatarAppearance Appearance [get, set]
 Avatar appearance data. More...
 
Vector3 Lookat [get]
 

Detailed Description

Definition at line 77 of file ScenePresence.cs.

Constructor & Destructor Documentation

OpenSim.Region.Framework.Scenes.ScenePresence.ScenePresence ( IClientAPI  client,
Scene  world,
AvatarAppearance  appearance,
PresenceType  type 
)
inline

Definition at line 1002 of file ScenePresence.cs.

Member Function Documentation

void OpenSim.Region.Framework.Scenes.ScenePresence.AddAttachment ( SceneObjectGroup  gobj)
inline
void OpenSim.Region.Framework.Scenes.ScenePresence.AddNeighbourRegionSizeInfo ( GridRegion  region)
inline

Definition at line 1707 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.AddNewMovement ( Vector3  vec,
float  thisAddSpeedModifier = 1,
bool  breaking = false 
)
inline

Rotate the avatar to the given rotation and apply a movement in the given relative vector

Parameters
vecThe vector in which to move. This is relative to the rotation argument
thisAddSpeedModifierOptional additional speed modifier for this particular add. Default is 1

Definition at line 3484 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.AddToPhysicalScene ( bool  isFlying)
inline

Adds a physical representation of the avatar to the Physics plugin

Definition at line 4572 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.AdjustKnownSeeds ( )
inline

Definition at line 887 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.avnHandleChangeAnim ( UUID  animID,
bool  addRemove,
bool  sendPack 
)
inline

Definition at line 3471 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.avnLocalTeleport ( Vector3  newpos,
Vector3?  newvel,
bool  rotateToVelXY 
)
inline

Definition at line 1554 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.CheckForBorderCrossing ( )
inlineprotected

Starts the process of moving an avatar into another region if they are crossing the border.

Also removes the avatar from the physical scene if transit has started.

Definition at line 4070 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.CheckForSignificantMovement ( )
inlineprotected

This checks for a significant movement and sends a coarselocationchange update

Definition at line 3995 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.ClearAttachments ( )
inline

Clear all attachments

Implements OpenSim.Region.Framework.Interfaces.IScenePresence.

Definition at line 4938 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.ClearControls ( )
inline

Definition at line 5377 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.CloseChildAgents ( bool  logout,
ulong  newRegionHandle,
int  newRegionSizeX,
int  newRegionSizeY 
)
inline

Computes which child agents to close when the scene presence moves to another region. Removes those regions from m_knownRegions.

Parameters
newRegionXThe new region's x on the map
newRegionYThe new region's y on the map
Returns

eventQueue.DisableSimulator(handle,UUID);

Definition at line 4191 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.CompleteMovement ( IClientAPI  client,
bool  openChildAgents 
)
inline

Complete Avatar's movement into the region.

Parameters
client
openChildAgentsIf true, send notification to neighbour regions to expect a child agent from the client. These neighbours can be some distance away, depending right now on the configuration of DefaultDrawDistance in the [Startup] section of config

Definition at line 1866 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.CopyAgent ( out IAgentData  agent)
inline

Definition at line 4542 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.CopyTo ( AgentData  cAgent)
inline

Definition at line 4379 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.CrossToNewRegion ( )
inlineprotected

Moves the agent outside the region bounds Tells neighbor region that we're crossing to it If the neighbor accepts, remove the agent's viewable avatar from this scene set them to a child agent.

Definition at line 4152 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.CrossToNewRegionFail ( )
inline

Definition at line 4119 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.DropOldNeighbours ( List< ulong >  oldRegions)
inline

Definition at line 1755 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.DropThisRootRegionFromNeighbours ( )
inline

Definition at line 1764 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.DumpKnownRegions ( )
inline

Definition at line 918 of file ScenePresence.cs.

UUID OpenSim.Region.Framework.Scenes.ScenePresence.GetAnimationOverride ( string  animState)
inline

Definition at line 6340 of file ScenePresence.cs.

List<SceneObjectGroup> OpenSim.Region.Framework.Scenes.ScenePresence.GetAttachments ( )
inline

Get all the presence's attachments.

Returns
A copy of the list which contains the attachments.

Implements OpenSim.Region.Framework.Interfaces.IScenePresence.

Definition at line 4820 of file ScenePresence.cs.

List<SceneObjectGroup> OpenSim.Region.Framework.Scenes.ScenePresence.GetAttachments ( uint  attachmentPoint)
inline

Get the scene objects attached to the given point.

Parameters
attachmentPoint
Returns
Returns an empty list if there were no attachments at the point.

Implements OpenSim.Region.Framework.Interfaces.IScenePresence.

Definition at line 4831 of file ScenePresence.cs.

float OpenSim.Region.Framework.Scenes.ScenePresence.GetMass ( )
inline

Gets the mass.

Returns
The mass.

Definition at line 5297 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.GetStateSource ( )
inline

Force viewers to show the avatar's current name.

The avatar name that is shown above the avatar in the viewers is sent in ObjectUpdate packets, and they get the name from the ScenePresence. Unfortunately, viewers have a bug (as of April 2014) where they ignore changes to the avatar name. However, tey don't ignore changes to the avatar's Group Title. So the following trick makes viewers update the avatar's name by briefly changing the group title (to "(Loading)"), and then restoring it.

Definition at line 1421 of file ScenePresence.cs.

Quaternion OpenSim.Region.Framework.Scenes.ScenePresence.GetWorldRotation ( )
inline

Gets the world rotation of this presence.

Unlike Rotation, this returns the world rotation no matter whether the avatar is sitting on a prim or not.

Returns

Definition at line 861 of file ScenePresence.cs.

Here is the caller graph for this function:

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.GetWorldVelocity ( )
inline

Get velocity relative to the world.

Definition at line 877 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.GrantGodlikePowers ( UUID  agentID,
UUID  sessionID,
UUID  token,
bool  godStatus 
)
inline

This allows the Sim owner the abiility to kick users from their sim currently. It tells the client that the agent has permission to do so.

Definition at line 4272 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleAgentRequestSit ( IClientAPI  remoteClient,
UUID  agentID,
UUID  targetID,
Vector3  offset 
)
inline

Definition at line 3133 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleAgentSit ( IClientAPI  remoteClient,
UUID  agentID 
)
inline

Definition at line 3284 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleAgentSitOnGround ( )
inline

Definition at line 3433 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleAgentUpdate ( IClientAPI  remoteClient,
AgentUpdateArgs  agentData 
)
inline

This is the event handler for client movement. If a client is moving, this event is triggering.

Definition at line 2219 of file ScenePresence.cs.

Here is the caller graph for this function:

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleForceReleaseControls ( IClientAPI  remoteClient,
UUID  agentID 
)
inline

Definition at line 5367 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.HandleMoveToTargetUpdate ( float  tolerance,
ref Vector3  agent_control_v3 
)
inline

Calculate an update to move the presence to the set target.

This doesn't actually perform the movement. Instead, it adds its vector to agent_control_v3.

Cumulative agent movement that this method will update.

Returns
True if movement has been updated in some way. False otherwise.

Definition at line 2654 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleSetAlwaysRun ( IClientAPI  remoteClient,
bool  pSetAlwaysRun 
)
inline

Event handler for the 'Always run' setting on the client Tells the physics plugin to increase speed of movement.

Definition at line 3454 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleStartAnim ( IClientAPI  remoteClient,
UUID  animID 
)
inline

Definition at line 3459 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.HandleStopAnim ( IClientAPI  remoteClient,
UUID  animID 
)
inline

Definition at line 3465 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.HasAttachments ( )
inline

Does this avatar have any attachments?

Returns

Implements OpenSim.Region.Framework.Interfaces.IScenePresence.

Definition at line 4850 of file ScenePresence.cs.

Here is the caller graph for this function:

void OpenSim.Region.Framework.Scenes.ScenePresence.HasMovedAway ( bool  nearRegion)
inline

Definition at line 6261 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.HasScriptedAttachments ( )
inline

Definition at line 4913 of file ScenePresence.cs.

Here is the caller graph for this function:

void OpenSim.Region.Framework.Scenes.ScenePresence.MakeChildAgent ( ulong  newRegionHandle)
inline

This turns a root agent into a child agent

when an agent departs this region for a neighbor, this gets called.

It doesn't get called for a teleport. Reason being, an agent that teleports out may not end up anywhere near this region

Definition at line 1444 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.MoveToTarget ( Vector3  pos,
bool  noFly,
bool  landAtTarget 
)
inline

Move to the given target over time.

Parameters
pos
noFlyIf true, then don't allow the avatar to fly to the target, even if it's up in the air. This is to allow movement to targets that are known to be on an elevated platform with a continuous path from start to finish.
landAtTargetIf true and the avatar starts flying during the move then land at the target.

Definition at line 2819 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.PhysicsCollisionUpdate ( EventArgs  e)
inline

Event called by the physics plugin to tell the avatar about a collision.

This function is called continuously, even when there are no collisions. If the avatar is walking on the ground or a prim then there will be collision information between the avatar and the surface.

FIXME: However, we can't safely avoid calling this yet where there are no collisions without analyzing whether any part of this method is relying on an every-frame call.

Parameters
e

Definition at line 4625 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.PhysicsSit ( SceneObjectPart  part,
Vector3  offset 
)
inline

Definition at line 3162 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.PhysicsSitResponse ( int  status,
uint  partID,
Vector3  offset,
Quaternion  Orientation 
)
inline

Definition at line 3205 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.RayCastCameraCallback ( bool  hitYN,
Vector3  collisionPoint,
uint  localid,
float  distance,
Vector3  pNormal 
)
inline

Definition at line 2162 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.RegisterControlEventsToScript ( int  controls,
int  accept,
int  pass_on,
uint  Obj_localID,
UUID  Script_item_UUID 
)
inline

Definition at line 5315 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.RegisterToEvents ( )
inline

Definition at line 1083 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.RemoveAttachment ( SceneObjectGroup  gobj)
inline
void OpenSim.Region.Framework.Scenes.ScenePresence.RemoveFromPhysicalScene ( )
inline

Removes physics plugin scene representation of this agent if it exists.

Definition at line 1500 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.RemoveNeighbourRegion ( ulong  regionHandle)
inline

Definition at line 1742 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.ResetMoveToTarget ( )
inline

Reset the move to target.

Definition at line 2901 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.RunningScriptCount ( )
inline

Returns the total count of running scripts in all parts.

Definition at line 4897 of file ScenePresence.cs.

Here is the caller graph for this function:

int OpenSim.Region.Framework.Scenes.ScenePresence.ScriptCount ( )
inline

Returns the total count of scripts in all parts inventories.

Definition at line 4859 of file ScenePresence.cs.

Here is the caller graph for this function:

float OpenSim.Region.Framework.Scenes.ScenePresence.ScriptExecutionTime ( )
inline

A float the value is a representative execution time in milliseconds of all scripts in all attachments.

Definition at line 4878 of file ScenePresence.cs.

Here is the caller graph for this function:

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAgentTerseUpdate ( ISceneEntity  p)
inline

Definition at line 3639 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAnimPack ( UUID[]  animations,
int[]  seqs,
UUID[]  objectIDs 
)
inline

Definition at line 3940 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAnimPackToAgent ( ScenePresence  p)
inline

Definition at line 3906 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAnimPackToAgent ( ScenePresence  p,
UUID[]  animations,
int[]  seqs,
UUID[]  objectIDs 
)
inline

Definition at line 3917 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAnimPackToAgentNF ( ScenePresence  p)
inline

Definition at line 3928 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAnimPackToAgentNF ( ScenePresence  p,
UUID[]  animations,
int[]  seqs,
UUID[]  objectIDs 
)
inline

Definition at line 3935 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAppearanceToAgent ( ScenePresence  avatar)
inline

Definition at line 3891 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAppearanceToAgentNF ( ScenePresence  avatar)
inline

Definition at line 3900 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAppearanceToAllOtherAgents ( )
inline

Send this agent's appearance to all other root and child agents in the scene This agent must be root.

Definition at line 3864 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentFullUpdateToAgentNF ( SceneObjectGroup  sog,
ScenePresence  p 
)
inline

Definition at line 5013 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentScheduleUpdate ( SceneObjectGroup  sog)
inline

Definition at line 5032 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentScheduleUpdate ( SceneObjectPart  part)
inline

Definition at line 5176 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentsToAgentNF ( ScenePresence  p)
inline

Definition at line 5000 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentsToAllAgents ( )
inline

Definition at line 4977 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentUpdate ( SceneObjectGroup  sog,
UpdateRequired  UpdateFlag 
)
inline

Definition at line 5114 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAttachmentUpdate ( SceneObjectPart  part,
UpdateRequired  UpdateFlag 
)
inline

Definition at line 5219 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAvatarDataToAgent ( ScenePresence  avatar)
inline

Send avatar data to an agent.

Parameters
avatar

Definition at line 3847 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAvatarDataToAgentNF ( ScenePresence  avatar)
inline

Definition at line 3855 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendAvatarDataToAllAgents ( )
inline

Send this agent's avatar data to all other root and child agents in the scene This agent must be root. This avatar will receive its own update.

Definition at line 3791 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendCoarseLocations ( List< Vector3 >  coarseLocations,
List< UUID avatarUUIDs 
)
inline

Definition at line 3710 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendCoarseLocationsDefault ( UUID  sceneId,
ScenePresence  p,
List< Vector3 >  coarseLocations,
List< UUID avatarUUIDs 
)
inline

Definition at line 3725 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendFullUpdateToClient ( IClientAPI  remoteClient)
inline

Definition at line 3627 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendInitialAvatarDataToAgent ( ScenePresence  p)
inline

Definition at line 3833 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendInitialAvatarDataToAllAgents ( List< ScenePresence presences)
inline

Definition at line 3816 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendInitialDataToMe ( )
inline

Send initial scene data to the client controlling this agent

This includes scene object data and the appearance data of other avatars.

Implements OpenSim.Framework.ISceneAgent.

Definition at line 3730 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendKillTo ( ScenePresence  p)
inline

Definition at line 6303 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendOtherAgentsAvatarFullToMe ( )
inline

Send avatar full data appearance and animations for all other root agents to this agent, this agent can be either a child or root

Definition at line 3763 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendScriptEventToAttachments ( string  eventName,
Object[]  args 
)
inline

Send a script event to this scene presence's attachments

Parameters
eventNameThe name of the event
argsThe arguments for the event

Definition at line 5264 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendTerseUpdateToAgent ( ScenePresence  p)
inline

Definition at line 3665 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendTerseUpdateToAgentNF ( ScenePresence  p)
inline

Definition at line 3684 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendTerseUpdateToAllClients ( )
inline

Send a location/velocity/accelleration update to all agents in scene

Definition at line 3700 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendTerseUpdateToClient ( IClientAPI  remoteClient)
inline

Sends a location update to the client connected to this scenePresence via entity updates

Parameters
remoteClient

Definition at line 3649 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendUpdateToAgent ( ScenePresence  p)
inline

Definition at line 3615 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SendViewTo ( ScenePresence  p)
inline

Definition at line 6324 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SetAnimationOverride ( string  animState,
UUID  animID 
)
inline

Definition at line 6333 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.setHealthWithUpdate ( float  health)
inline

Definition at line 4774 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SetHeight ( float  height)
inline

Sets avatar height in the physics plugin

Parameters
heightNew height of avatar

Definition at line 1812 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SetNeighbourRegionSizeInfo ( List< GridRegion regionsList)
inline

Definition at line 1726 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SetSendCoarseLocationMethod ( SendCoarseLocationsMethod  d)
inline

Definition at line 3719 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.SetSize ( Vector3  size,
float  feetoffset 
)
inline

Definition at line 1818 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.sitSOGmoved ( )
inline

Definition at line 194 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.StandUp ( )
inline

Perform the logic necessary to stand the avatar up. This method also executes the stand animation.

Definition at line 2920 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.StopFlying ( )
inline

Definition at line 1588 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.Teleport ( Vector3  pos)
inline

Do not call this directly. Call Scene.RequestTeleportLocation() instead.

Parameters
pos

Definition at line 1524 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.TeleportWithMomentum ( Vector3  pos,
Vector3?  v 
)
inline

Definition at line 1529 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.TriggerScenePresenceUpdated ( )
inline

Definition at line 87 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.UnRegisterControlEventsToScript ( uint  Obj_localID,
UUID  Script_item_UUID 
)
inline

Definition at line 5401 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.UnRegisterSeatControls ( UUID  obj)
inline

Definition at line 5386 of file ScenePresence.cs.

override void OpenSim.Region.Framework.Scenes.ScenePresence.Update ( )
inlinevirtual

Performs any updates that need to be done at each frame, as opposed to immediately. These included scheduled updates and updates that occur due to physics processing.

Implements OpenSim.Region.Framework.Scenes.EntityBase.

Definition at line 3548 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.UpdateChildAgent ( AgentData  cAgentData)
inline

Definition at line 4303 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.UpdateChildAgent ( AgentPosition  cAgentData,
uint  tRegionX,
uint  tRegionY,
uint  rRegionX,
uint  rRegionY 
)
inline

This updates important decision making data about a child agent The main purpose is to figure out what objects to send to a child agent that's in a neighboring region

Definition at line 4324 of file ScenePresence.cs.

void OpenSim.Region.Framework.Scenes.ScenePresence.UpdateMovement ( )
inline

Handles part of the PID controller function for moving an avatar.

Definition at line 4554 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.ValidateAttachments ( )
inline

This is currently just being done for information.

Definition at line 4947 of file ScenePresence.cs.

Member Data Documentation

const float OpenSim.Region.Framework.Scenes.ScenePresence.AgentControlNormalVel = 1.0f

Definition at line 965 of file ScenePresence.cs.

const float OpenSim.Region.Framework.Scenes.ScenePresence.AgentControlNudgeVel = 1.0f

Definition at line 964 of file ScenePresence.cs.

readonly float OpenSim.Region.Framework.Scenes.ScenePresence.CHILDUPDATES_MOVEMENT = 100.0f
static

Definition at line 157 of file ScenePresence.cs.

readonly float OpenSim.Region.Framework.Scenes.ScenePresence.CHILDUPDATES_TIME = 10000f
static

Definition at line 158 of file ScenePresence.cs.

Vector4 OpenSim.Region.Framework.Scenes.ScenePresence.CollisionPlane = Vector4.UnitW

Definition at line 274 of file ScenePresence.cs.

ulong OpenSim.Region.Framework.Scenes.ScenePresence.crossingFromRegion
protected

Definition at line 346 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.lastKnownAllowedPosition

Definition at line 272 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.LegacySitOffsets = true

Definition at line 147 of file ScenePresence.cs.

AvatarAppearance OpenSim.Region.Framework.Scenes.ScenePresence.m_appearance
protected

Definition at line 379 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.m_reprioritizationBusy
protected

Definition at line 351 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.m_reprioritizationLastPosition
protected

Definition at line 352 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.m_reprioritizationLastTime
protected

Definition at line 350 of file ScenePresence.cs.

readonly float OpenSim.Region.Framework.Scenes.ScenePresence.MOVEMENT = .25f
static

Movement updates for agents in neighboring regions are sent directly to clients. This value only affects how often agent positions are sent to neighbor regions for things such as distance-based update prioritization this are the square of real distances

Definition at line 155 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.sentMessageAboutRestrictedParcelFlyingDown

Definition at line 273 of file ScenePresence.cs.

readonly float OpenSim.Region.Framework.Scenes.ScenePresence.SIGNIFICANT_MOVEMENT = 16.0f
static

Definition at line 156 of file ScenePresence.cs.

readonly Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.SIT_TARGET_ADJUSTMENT = new Vector3(0.0f, 0.0f, 0.4f)
static

Experimentally determined "fudge factor" to make sit-target positions the same as in SecondLife. Fudge factor was tested for 36 different test cases including prims of type box, sphere, cylinder, and torus, with varying parameters for sit target location, prim size, prim rotation, prim cut, prim twist, prim taper, and prim shear. See mantis issue #1716

Definition at line 146 of file ScenePresence.cs.

String OpenSim.Region.Framework.Scenes.ScenePresence.sitAnimation = "SIT"

Definition at line 254 of file ScenePresence.cs.

Property Documentation

override Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.AbsolutePosition
getset

Position of this avatar relative to the region the avatar is in

Definition at line 647 of file ScenePresence.cs.

uint OpenSim.Region.Framework.Scenes.ScenePresence.AgentControlFlags
getset

Definition at line 627 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.AgentControlStopActive
getset

Is the agent stop control flag currently active?

Definition at line 480 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.AllowMovement
getset

Definition at line 594 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.AngularVelocity
get

Definition at line 815 of file ScenePresence.cs.

ScenePresenceAnimator OpenSim.Region.Framework.Scenes.ScenePresence.Animator
getset

The animator for this avatar

Definition at line 248 of file ScenePresence.cs.

AvatarAppearance OpenSim.Region.Framework.Scenes.ScenePresence.Appearance
getset

Definition at line 382 of file ScenePresence.cs.

Object OpenSim.Region.Framework.Scenes.ScenePresence.AttachmentsSyncLock
getset

Definition at line 264 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.CameraAtAxis
getset

Definition at line 541 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.CameraLeftAxis
getset

Definition at line 542 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.CameraPosition
getset

Definition at line 531 of file ScenePresence.cs.

Quaternion OpenSim.Region.Framework.Scenes.ScenePresence.CameraRotation
get

Definition at line 534 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.CameraUpAxis
getset

Definition at line 543 of file ScenePresence.cs.

IClientCore OpenSim.Region.Framework.Scenes.ScenePresence.ClientView
get

Definition at line 635 of file ScenePresence.cs.

UUID OpenSim.Region.Framework.Scenes.ScenePresence.COF
getset

Definition at line 639 of file ScenePresence.cs.

IClientAPI OpenSim.Region.Framework.Scenes.ScenePresence.ControllingClient
getset

Definition at line 632 of file ScenePresence.cs.

UUID OpenSim.Region.Framework.Scenes.ScenePresence.currentParcelUUID
getset

Definition at line 167 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.DoNotCloseAfterTeleport
getset

Used by the entity transfer module to signal when the presence should not be closed because a subsequent teleport is reusing the connection.

May be refactored or move somewhere else soon.

Definition at line 456 of file ScenePresence.cs.

float OpenSim.Region.Framework.Scenes.ScenePresence.DrawDistance
getset

Definition at line 575 of file ScenePresence.cs.

string OpenSim.Region.Framework.Scenes.ScenePresence.Firstname
getset

Definition at line 556 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.FlyDisabled
getset

Definition at line 988 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.Flying
getset

Definition at line 292 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.ForceFly
getset

Definition at line 980 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.GodLevel
getset

Definition at line 501 of file ScenePresence.cs.

string OpenSim.Region.Framework.Scenes.ScenePresence.Grouptitle
getset

Definition at line 560 of file ScenePresence.cs.

float OpenSim.Region.Framework.Scenes.ScenePresence.Health
getset

Definition at line 849 of file ScenePresence.cs.

List<string> OpenSim.Region.Framework.Scenes.ScenePresence.InTransitScriptStates
getset

Copy of the script states while the agent is in transit. This state may need to be placed back in case of transfer fail.

Definition at line 397 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.Invulnerable
getset

Definition at line 485 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.IsChildAgent
getset

Definition at line 819 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.IsColliding
getset

Definition at line 298 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.IsInTransit
getset

This signals whether the presence is in transit between neighbouring regions.

It is not set when the presence is teleporting or logging in/out directly to a region.

Definition at line 941 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.IsLoggingIn
getset

Definition at line 820 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.isNPC
getset

Definition at line 93 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.IsSatOnObject
get

Are we sitting on an object?

A more readable way of testing presence sit status than ParentID == 0

Definition at line 838 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.KnownRegionCount
get

Definition at line 1796 of file ScenePresence.cs.

List<ulong> OpenSim.Region.Framework.Scenes.ScenePresence.KnownRegionHandles
get

Definition at line 1788 of file ScenePresence.cs.

Dictionary<ulong, string> OpenSim.Region.Framework.Scenes.ScenePresence.KnownRegions
getset

Definition at line 1772 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.LandAtTarget
getset

Controls whether an avatar automatically moving to a target will land when it gets there (if flying).

Definition at line 363 of file ScenePresence.cs.

string OpenSim.Region.Framework.Scenes.ScenePresence.Lastname
getset

Definition at line 557 of file ScenePresence.cs.

ScenePresenceState OpenSim.Region.Framework.Scenes.ScenePresence.LifecycleState
getset

The current state of this presence. Governs only the existence lifecycle. See ScenePresenceStateMachine for more details.

Definition at line 112 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.Lookat
get

Definition at line 546 of file ScenePresence.cs.

uint OpenSim.Region.Framework.Scenes.ScenePresence.MovementFlag
getset

Record user movement inputs.

Definition at line 475 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.MoveToPositionTarget
getset

Definition at line 358 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.MovingToTarget
getset

Definition at line 357 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.OffsetPosition
getset

If sitting, returns the offset position from the prim the avatar is sitting on. Otherwise, returns absolute position in the scene.

Definition at line 719 of file ScenePresence.cs.

MovementAnimationOverrides OpenSim.Region.Framework.Scenes.ScenePresence.Overrides
getset

Server Side Animation Override

Definition at line 253 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.ParcelAllowThisAvatarSounds
get

Definition at line 213 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.ParcelHideThisAvatar
get

Definition at line 238 of file ScenePresence.cs.

uint OpenSim.Region.Framework.Scenes.ScenePresence.ParentID
getset

If the avatar is sitting, the local ID of the prim that it's sitting on. If not sitting then zero.

Definition at line 825 of file ScenePresence.cs.

SceneObjectPart OpenSim.Region.Framework.Scenes.ScenePresence.ParentPart
getset

If the avatar is sitting, the prim that it's sitting on. If not sitting then null.

If you use this property then you must take a reference since another thread could set it to null.

Definition at line 846 of file ScenePresence.cs.

UUID OpenSim.Region.Framework.Scenes.ScenePresence.ParentUUID
getset

Definition at line 828 of file ScenePresence.cs.

PhysicsActor OpenSim.Region.Framework.Scenes.ScenePresence.PhysicsActor
getset

Physical scene representation of this Avatar.

Definition at line 470 of file ScenePresence.cs.

PresenceType OpenSim.Region.Framework.Scenes.ScenePresence.PresenceType
getset

Definition at line 96 of file ScenePresence.cs.

Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.PrevSitOffset
getset

Definition at line 377 of file ScenePresence.cs.

ulong OpenSim.Region.Framework.Scenes.ScenePresence.RegionHandle
getset

Definition at line 510 of file ScenePresence.cs.

float OpenSim.Region.Framework.Scenes.ScenePresence.RegionViewDistance
get

Definition at line 587 of file ScenePresence.cs.

Quaternion OpenSim.Region.Framework.Scenes.ScenePresence.Rotation
getset

The rotation of the avatar.

If the avatar is not sitting, this is with respect to the world If the avatar is sitting, this is a with respect to the part that it's sitting upon (a local rotation). If you always want the world rotation, use GetWorldRotation()

Definition at line 786 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.SetAlwaysRun
getset

Definition at line 599 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.SitGround
getset

Are we sitting on the ground?

Definition at line 322 of file ScenePresence.cs.

float OpenSim.Region.Framework.Scenes.ScenePresence.SpeedModifier
getset

Definition at line 972 of file ScenePresence.cs.

byte OpenSim.Region.Framework.Scenes.ScenePresence.State
getset

Definition at line 622 of file ScenePresence.cs.

TeleportFlags OpenSim.Region.Framework.Scenes.ScenePresence.TeleportFlags
getset

Definition at line 311 of file ScenePresence.cs.

bool OpenSim.Region.Framework.Scenes.ScenePresence.UseFakeGroupTitle
getset

When this is 'true', return a dummy group title instead of the real group title. This is used as part of a hack to force viewers to update the displayed avatar name.

Definition at line 570 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.UserFlags
get

Definition at line 286 of file ScenePresence.cs.

int OpenSim.Region.Framework.Scenes.ScenePresence.UserLevel
getset

Definition at line 493 of file ScenePresence.cs.

override Vector3 OpenSim.Region.Framework.Scenes.ScenePresence.Velocity
getset

Current velocity of the avatar.

Definition at line 738 of file ScenePresence.cs.

string OpenSim.Region.Framework.Scenes.ScenePresence.Viewer
get

Definition at line 994 of file ScenePresence.cs.


The documentation for this class was generated from the following file: