1 using Microsoft.Xna.Framework;
10 return GetAnimParams<HumanWalkParams>(character,
AnimationType.Walk, file, throwErrors);
13 public override void StoreSnapshot() => StoreSnapshot<HumanWalkParams>();
21 return GetAnimParams<HumanRunParams>(character,
AnimationType.Run, file, throwErrors);
24 public override void StoreSnapshot() => StoreSnapshot<HumanRunParams>();
29 [
Serialize(0.0f,
IsPropertySaveable.Yes, description:
"How much lower the character's head and torso move when stationary."),
Editable(MinValueFloat = 0, MaxValueFloat = 2, DecimalCount = 2)]
41 return GetAnimParams<HumanCrouchParams>(character,
AnimationType.Crouch, file, throwErrors);
44 public override void StoreSnapshot() => StoreSnapshot<HumanCrouchParams>();
52 return GetAnimParams<HumanSwimFastParams>(character,
AnimationType.SwimFast, file, throwErrors);
56 public override void StoreSnapshot() => StoreSnapshot<HumanSwimFastParams>();
64 return GetAnimParams<HumanSwimSlowParams>(character,
AnimationType.SwimSlow, file, throwErrors);
67 public override void StoreSnapshot() => StoreSnapshot<HumanSwimSlowParams>();
118 [
Serialize(0.3f,
IsPropertySaveable.Yes, description:
"How much force is used to force the character upright."),
Editable(MinValueFloat = 0, MaxValueFloat = 1, DecimalCount = 2)]
128 [
Serialize(15.0f,
IsPropertySaveable.Yes, description:
"How much force is used to move the feet to the correct position."),
Editable(MinValueFloat = 0, MaxValueFloat = 100)]
131 [
Serialize(0f,
IsPropertySaveable.Yes, description:
"How much the horizontal difference of waist and the foot positions has an effect to lifting the foot."),
Editable(DecimalCount = 2, ValueStep = 0.1f, MinValueFloat = 0f, MaxValueFloat = 1f)]
134 [
Serialize(
"0,0",
IsPropertySaveable.Yes, description:
"Normally the character's feet are positioned at a scaled-down version of it's normal step position - this can be used to override that value if you want to e.g. make the character to spread out it's feet more when standing."),
Editable(DecimalCount = 2, ValueStep = 0.01f)]
155 [
Serialize(
"0.0, 0.0",
IsPropertySaveable.Yes, description:
"Added to the calculated foot positions, e.g. a value of {-1.0, 0.0f} would make the character \"drag\" their feet one unit behind them."),
Editable(DecimalCount = 2)]
158 [
Serialize(10.0f,
IsPropertySaveable.Yes, description:
"How much torque is used to bend the characters legs when taking a step."),
Editable(MinValueFloat = 0, MaxValueFloat = 100)]
165 [
Serialize(
"-0.15, 0.0",
IsPropertySaveable.Yes, description:
"Added to the calculated hand positions, e.g. a value of {-1.0, 0.0f} would make the character \"drag\" their hands one unit behind them."),
Editable(DecimalCount = 2)]
168 [
Serialize(-1.0f,
IsPropertySaveable.Yes, description:
"The position of the hands is clamped below this (relative to the position of the character's torso)."),
Editable(DecimalCount = 2)]
float MoveDownAmountWhenStationary
float ExtraHeadAngleWhenStationary
override void StoreSnapshot()
static HumanCrouchParams GetDefaultAnimParams(Character character)
float ExtraTorsoAngleWhenStationary
static HumanCrouchParams GetAnimParams(Character character, Either< string, ContentPath > file, bool throwErrors=true)
float FootAngle
In degrees.
float FootLiftHorizontalFactor
Vector2 StepSizeWhenStanding
static HumanRunParams GetDefaultAnimParams(Character character)
override void StoreSnapshot()
static HumanRunParams GetAnimParams(Character character, Either< string, ContentPath > file, bool throwErrors=true)
static HumanSwimFastParams GetAnimParams(Character character, Either< string, ContentPath > file, bool throwErrors=true)
override void StoreSnapshot()
static HumanSwimFastParams GetDefaultAnimParams(Character character)
float FootAngle
In degrees.
override void StoreSnapshot()
static HumanSwimSlowParams GetDefaultAnimParams(Character character)
static HumanSwimSlowParams GetAnimParams(Character character, Either< string, ContentPath > file, bool throwErrors=true)
override void StoreSnapshot()
static HumanWalkParams GetAnimParams(Character character, Either< string, ContentPath > file, bool throwErrors=true)
static HumanWalkParams GetDefaultAnimParams(Character character)