C# 클래스 OpenMetaverse.AgentManager.AgentMovement

Agent movement and camera control Agent movement is controlled by setting specific T:AgentManager.ControlFlags 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
파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs

공개 프로퍼티들

프로퍼티 타입 설명
BodyRotation Quaternion
Camera AgentCamera
Flags AgentFlags
HeadRotation Quaternion
State AgentState

공개 메소드들

메소드 설명
AgentMovement ( GridClient client ) : System

Default constructor

SendManualUpdate ( AgentManager controlFlags, System.Vector3 position, System.Vector3 forwardAxis, System.Vector3 leftAxis, System.Vector3 upAxis, Quaternion bodyRotation, Quaternion headRotation, float farClip, AgentFlags flags, AgentState state, bool reliable ) : void

Builds an AgentUpdate packet entirely from parameters. This will not touch the state of Self.Movement or Self.Movement.Camera in any way

SendUpdate ( ) : void

Send new AgentUpdate packet to update our current camera position and rotation

SendUpdate ( bool reliable ) : void

Send new AgentUpdate packet to update our current camera position and rotation

SendUpdate ( bool reliable, Simulator simulator ) : void

Send new AgentUpdate packet to update our current camera position and rotation

TurnToward ( System.Vector3 target ) : bool

Rotates the avatar body and camera toward a target position. This will also anchor the camera position on the avatar

UpdateFromHeading ( double heading, bool reliable ) : void

Send an AgentUpdate with the camera set at the current agent position and pointing towards the heading specified

비공개 메소드들

메소드 설명
GetControlFlag ( ControlFlags flag ) : bool
ResetControlFlags ( ) : void
SetControlFlag ( ControlFlags flag, bool value ) : void
UpdateTimer_Elapsed ( object obj ) : void

메소드 상세

AgentMovement() 공개 메소드

Default constructor
public AgentMovement ( GridClient client ) : System
client GridClient
리턴 System

SendManualUpdate() 공개 메소드

Builds an AgentUpdate packet entirely from parameters. This will not touch the state of Self.Movement or Self.Movement.Camera in any way
public SendManualUpdate ( AgentManager controlFlags, System.Vector3 position, System.Vector3 forwardAxis, System.Vector3 leftAxis, System.Vector3 upAxis, Quaternion bodyRotation, Quaternion headRotation, float farClip, AgentFlags flags, AgentState state, bool reliable ) : void
controlFlags AgentManager
position System.Vector3
forwardAxis System.Vector3
leftAxis System.Vector3
upAxis System.Vector3
bodyRotation Quaternion
headRotation Quaternion
farClip float
flags AgentFlags
state AgentState
reliable bool
리턴 void

SendUpdate() 공개 메소드

Send new AgentUpdate packet to update our current camera position and rotation
public SendUpdate ( ) : void
리턴 void

SendUpdate() 공개 메소드

Send new AgentUpdate packet to update our current camera position and rotation
public SendUpdate ( bool reliable ) : void
reliable bool Whether to require server acknowledgement /// of this packet
리턴 void

SendUpdate() 공개 메소드

Send new AgentUpdate packet to update our current camera position and rotation
public SendUpdate ( bool reliable, Simulator simulator ) : void
reliable bool Whether to require server acknowledgement /// of this packet
simulator Simulator Simulator to send the update to
리턴 void

TurnToward() 공개 메소드

Rotates the avatar body and camera toward a target position. This will also anchor the camera position on the avatar
public TurnToward ( System.Vector3 target ) : bool
target System.Vector3 Region coordinates to turn toward
리턴 bool

UpdateFromHeading() 공개 메소드

Send an AgentUpdate with the camera set at the current agent position and pointing towards the heading specified
public UpdateFromHeading ( double heading, bool reliable ) : void
heading double Camera rotation in radians
reliable bool Whether to send the AgentUpdate reliable /// or not
리턴 void

프로퍼티 상세

BodyRotation 공개적으로 프로퍼티

public Quaternion BodyRotation
리턴 Quaternion

Camera 공개적으로 프로퍼티

Agent camera controls
public AgentCamera Camera
리턴 AgentCamera

Flags 공개적으로 프로퍼티

Currently only used for hiding your group title
public AgentFlags Flags
리턴 AgentFlags

HeadRotation 공개적으로 프로퍼티

public Quaternion HeadRotation
리턴 Quaternion

State 공개적으로 프로퍼티

Action state of the avatar, which can currently be typing and editing
public AgentState State
리턴 AgentState