AvatarController (AvatarPlugin)¶
This plugin has been superseded by the AvatarPlugin.
IMML example¶
Properties¶
string AnimationSource¶
- Summary:
bool DisableUserInput¶
- Summary:
bool FirstPerson¶
- Summary:
bool DisableJump¶
- Summary: Disables jump
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¶
- Summary:
string BackwardsKey¶
- Summary:
string LeftKey¶
- Summary:
string RightKey¶
- Summary:
string JumpKey¶
- Summary:
string CrouchKey¶
- Summary:
string RunKey¶
- Summary:
string AltForwardsKey¶
- Summary:
string AltBackwardsKey¶
- Summary:
string AltLeftKey¶
- Summary:
string AltRightKey¶
- Summary:
string AltJumpKey¶
- Summary:
string AltCrouchKey¶
- Summary:
string AltRunKey¶
- Summary:
string Head¶
- Summary: the section for gestures and stuff
string HeadMouseDriven¶
- Summary:
string HeadMultiplier¶
- Summary:
Vector3 LookAtVector¶
- Summary:
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¶
- Summary:
bool LimitJumpMovement¶
- Summary:
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¶
- Summary:
float WalkSpeed¶
- Summary:
bool IsSeated¶
- Summary:
bool Enabled¶
- Summary:
bool SuppressInput¶
- Summary:
Functions¶
void read_animation_xml(XmlDocument xDoc)¶
- Summary:
- Parameters
void SetLocation(Vector3 position, Vector3 rotation)¶
- Summary:
- Parameters
void Sit()¶
- Summary:
- Parameters
void Stand(Vector3 position, Vector3 rotation)¶
- Summary:
- Parameters
void Sit(VastPark.Imml.Proxy.ImmlElement elementProxy)¶
- Summary:
- Parameters
void Stand()¶
- Summary:
- Parameters
void SetDefaultAnimation(string target_sequence)¶
- Summary:
- Parameters
void SetOverrideAnimation(string target_group, string target_sequence, bool loop)¶
- Summary:
- Parameters
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
- rotation:
- seconds:
void Load()¶
- Summary:
- Parameters
void AddElement(ImmlElement element)¶
- Summary:
- Parameters
void Update()¶
- Summary:
- Parameters
void Dispose()¶
- Summary:
- Parameters
void SetParkEngine(IParkEngine parkEngine)¶
- Summary:
- Parameters