Table of Contents

Class EntityHeadController

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class EntityHeadController : IHeadController
Inheritance
EntityHeadController
Implements
Derived
Inherited Members
Extension Methods

Constructors

EntityHeadController(IAnimationManager, EntityAgent, Shape)

public EntityHeadController(IAnimationManager animationManager, EntityAgent entity, Shape entityShape)

Parameters

animationManager IAnimationManager
entity EntityAgent
entityShape Shape

Fields

animationManager

protected readonly IAnimationManager animationManager

Field Value

IAnimationManager

entity

protected readonly EntityAgent entity

Field Value

EntityAgent

headPose

protected readonly ElementPose headPose

Field Value

ElementPose

headYOffsetFactor

protected float headYOffsetFactor

Field Value

float

headZOffsetFactor

protected float headZOffsetFactor

Field Value

float

neckPose

protected readonly ElementPose neckPose

Field Value

ElementPose

neckYOffsetFactor

protected float neckYOffsetFactor

Field Value

float

neckZOffsetFactor

protected float neckZOffsetFactor

Field Value

float

Properties

PitchOffset

public float PitchOffset { get; set; }

Property Value

float

YawOffset

public float YawOffset { get; set; }

Property Value

float

Methods

GetOffsets(float)

protected virtual (float yOffsetDeg, float zOffsetDeg) GetOffsets(float dt)

Parameters

dt float

Returns

(float yOffsetDeg, float zOffsetDeg)

GetPose(string)

protected ElementPose GetPose(string name)

Parameters

name string

Returns

ElementPose

OnFrame(float)

Called from AnimationManager each frame before frame.

public virtual void OnFrame(float dt)

Parameters

dt float