80 public override void Update(
float dt) {
82 float num = m_componentCreature.ComponentLocomotion.SlipSpeed
94 else if (MathF.Abs(num) > 0.2f) {
115 Bob += num3 * (num2 -
Bob);
119 && footstepsPhase <= num4) {
121 if (!
string.IsNullOrEmpty(footstepSoundMaterialName)
122 && footstepSoundMaterialName !=
"Water") {
124 "Audio/Footsteps/CanterDirt",
137 && footstepsPhase <= num5) {
225 vector3 = 0.6f * vector2;
226 vector2 = 0.4f * vector2;
257 float num21 = m_componentCreature.ComponentBody.BoundingBox.Max.Y -
m_componentCreature.ComponentBody.BoundingBox.Min.Y;
277 base.Load(valuesDictionary, idToEntityMap);
286 m_canCanter = valuesDictionary.GetValue<
bool>(
"CanCanter");
287 m_canTrot = valuesDictionary.GetValue<
bool>(
"CanTrot");
292 base.SetModel(model);
static float Remainder(float x, float y)
static int Min(int x1, int x2)
static float Sigmoid(float x, float steepness)
static int Max(int x1, int x2)
static float DegToRad(float degrees)
SubsystemTime m_subsystemTime
ComponentCreature m_componentCreature
float MovementAnimationPhase
override float AttackPhase
override void Update(float dt)
override void AnimateCreature()
SubsystemAudio m_subsystemAudio
float m_walkFrontLegsAngle
float m_walkHindLegsAngle
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override float AttackFactor
float m_walkAnimationSpeed
override void SetModel(Model model)
SubsystemSoundMaterials m_subsystemSoundMaterials
bool m_moveLegWhenFeeding
float m_canterLegsAngleFactor
virtual void SetBoneTransform(int boneIndex, Matrix? transformation)
ComponentFrame m_componentFrame
static float OctavedNoise(float x, float frequency, int octaves, float frequencyStep, float amplitudeStep, bool ridged=false)
ValuesDictionary ValuesDictionary
static Matrix CreateRotationX(float radians)
static Matrix CreateTranslation(float x, float y, float z)
static Matrix CreateRotationZ(float radians)
static readonly Matrix Identity
static Matrix CreateFromYawPitchRoll(float yaw, float pitch, float roll)
static Matrix CreateRotationY(float radians)
static readonly Vector2 Zero
static Vector2 Lerp(Vector2 v1, Vector2 v2, float f)
static readonly Vector3 UnitY
static float Dot(Vector3 v1, Vector3 v2)