Agent movement and camera control Agent
movement is controlled by setting specific After the control flags
are set, An AgentUpdate is required to update the simulator of the
specified flags This is most easily accomplished by setting one or
more of the AgentMovement properties Movement of an avatar is
always based on a compass direction, for example AtPos will move
the agent from West to East or forward on the X Axis, AtNeg will of
course move agent from East to West or backward on the X Axis,
LeftPos will be South to North or forward on the Y Axis The Z axis
is Up, finer grained control of movements can be done using the
Nudge properties
Declaration Syntax
C# |
public class AgentMovement
Members
All Members | Constructors | Methods | Properties | Fields | |
|
|
|
Icon | Member | Description |
---|---|---|
AgentManager . . :: . . AgentMovement(GridClient) |
Default constructor
|
|
AgentControls |
The current value of the agent control
flags
|
|
AlwaysRun |
Returns "always run" value, or changes it by
sending a SetAlwaysRunPacket
|
|
AtNeg |
Move agent negative along the X axis
|
|
AtPos |
Move agent positive along the X axis
|
|
AutoResetControls |
Reset movement controls every time we send an
update
|
|
Away |
Tell simulator to mark agent as away
|
|
BodyRotation |
|
|
Camera |
Agent camera controls
|
|
FastAt |
|
|
FastLeft |
|
|
FastUp |
|
|
FinishAnim |
Finish animation
|
|
Flags |
Currently only used for hiding your group
title
|
|
Fly |
Causes simulator to make agent fly
|
|
HeadRotation |
|
|
LButtonDown |
|
|
LButtonUp |
|
|
LeftNeg |
Move agent negative along the Y axis
|
|
LeftPos |
Move agent positive along the Y axis
|
|
MLButtonDown |
|
|
MLButtonUp |
|
|
Mouselook |
Place agent into mouselook mode
|
|
NudgeAtNeg |
Nudge agent negative along the X axis
|
|
NudgeAtPos |
Nudge agent positive along the X axis
|
|
NudgeLeftNeg |
Nudge agent negative along the Y axis
|
|
NudgeLeftPos |
Nudge agent positive along the Y axis
|
|
NudgeUpNeg |
Nudge agent negative along the Z axis
|
|
NudgeUpPos |
Nudge agent positive along the Z axis
|
|
PitchNeg |
|
|
PitchPos |
|
|
ResetControlFlags () () () () |
|
|
SendManualUpdate(AgentManager . . :: . . ControlFlags, Vector3, Vector3, Vector3, Vector3, Quaternion, Quaternion, Single, AgentFlags, AgentState, Boolean) |
Builds an AgentUpdate packet entirely from
parameters. This will not touch the state of Self.Movement or
Self.Movement.Camera in any way
|
|
SendUpdate () () () () |
Send new AgentUpdate packet to update our
current camera position and rotation
|
|
SendUpdate(Boolean) |
Send new AgentUpdate packet to update our
current camera position and rotation
|
|
SendUpdate(Boolean, Simulator) |
Send new AgentUpdate packet to update our
current camera position and rotation
|
|
SetFOVVerticalAngle(Single) |
Sends update of Field of Vision vertical angle
to the simulator
|
|
SitOnGround |
Tells simulator to sit agent on ground
|
|
StandUp |
Stand up from a sit
|
|
State |
Action state of the avatar, which can
currently be typing and editing
|
|
Stop |
Stop movement
|
|
TurnLeft |
|
|
TurnRight |
|
|
TurnToward(Vector3) |
Rotates the avatar body and camera toward a
target position. This will also anchor the camera position on the
avatar
|
|
TurnToward(Vector3, Boolean) |
Rotates the avatar body and camera toward a
target position. This will also anchor the camera position on the
avatar
|
|
UpdateEnabled |
Gets or sets whether AgentUpdate packets are
sent to the current simulator
|
|
UpdateFromHeading(Double, Boolean) |
Send an AgentUpdate with the camera set at the
current agent position and pointing towards the heading
specified
|
|
UpdateInterval |
Gets or sets the interval in milliseconds at
which AgentUpdate packets are sent to the current simulator.
Setting this to a non-zero value will also enable the packet
sending if it was previously off, and setting it to zero will
disable
|
|
UpNeg |
Move agent negative along the Z axis
|
|
UpPos |
Move agent positive along the Z axis
|
|
YawNeg |
|
|
YawPos |
|
Inheritance Hierarchy
Object | |
AgentManager . . :: . . AgentMovement |
See Also
ControlFlags
Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)