Wiki-home » About VastPark » Platform » VastWorlds platform » Developer's guide » Plugins » List of Plugins »
AvatarController (AvatarPlugin)¶
IMML example¶
Properties¶
string AnimationSource¶
bool FirstPerson¶
bool DisableJump¶
bool LockMouseOnClick¶
- Summary: Locks the mouse to the centre of the screen when clicked
bool Strafe¶
- Summary: When true, the left and right keys strafe rather than turn
string ForwardsKey¶
string BackwardsKey¶
string LeftKey¶
string RightKey¶
string JumpKey¶
string CrouchKey¶
string RunKey¶
string AltForwardsKey¶
string AltBackwardsKey¶
string AltLeftKey¶
string AltRightKey¶
string AltJumpKey¶
string AltCrouchKey¶
string AltRunKey¶
string Head¶
- Summary: the section for gestures and stuff
string HeadMouseDriven¶
string HeadMultiplier¶
Vector3 LookAtVector¶
string EyeLevel¶
- Summary: The eye level to use for the FPS camera
string Avatar¶
- Summary: The name of the element that should be linked to input movements
string FirstPersonCamera¶
- Summary: The name of the camera to use when in first person mode
string ThirdPersonCamera¶
- Summary: The name of the camera to use when in 3rd person mode
string Crosshair¶
- Summary: The name of the text element that's acting as the crosshair (optional, only used during first person mode)
float Weight¶
- Summary: The weight of the physics proxy to create
float Height¶
- Summary: The height of the physics proxy to create
float Radius¶
- Summary: The radius of the physics proxy to create
float JumpImpulse¶
bool LimitJumpMovement¶
bool UseModelProperties¶
- Summary: When true, uses the properties specified in the model as the values to apply for the plugin
float MouseSensitivity¶
- Summary: Mouse sensitiviy between 0 and 1
float RunMultiplier¶
float WalkSpeed¶
bool IsSeated¶
bool Enabled¶
Functions¶
void read_animation_xml(XmlDocument xDoc)¶
void SetLocation(Vector3 position, Vector3 rotation)¶
void Sit()¶
void Stand(Vector3 position, Vector3 rotation)¶
void Sit(VastPark.Imml.Proxy.ImmlElement elementProxy)¶
void Stand()¶
void SetDefaultAnimation(string target_sequence)¶
void SetOverrideAnimation(string target_group, string target_sequence, bool loop)¶
string GetOverrideAnimation(string target_group)¶
- Summary:
- Parameters
- Returns:
void Move(Vector3 position, float seconds)¶
- Summary: Move to the specified position
- Parameters
- position:
- rotation:
- seconds: Number of seconds to reach the destination
void Rotate(float rotation, float seconds)¶
- Summary: Rotate to the specified rotation
- Parameters
void Load()¶
void AddElement(ImmlElement element)¶
void Update()¶
void Dispose()¶
void SetParkEngine(IParkEngine parkEngine)¶