23 public virtual void Update(
float dt) {
28 if (lastWalkOrder.HasValue) {
31 m_componentCreature.ComponentBody.CollisionVelocityChange.Z
36 Vector3 vector2 = m_componentCreature.ComponentBody.Matrix.Right * lastWalkOrder.Value.X
37 + m_componentCreature.ComponentBody.Matrix.Forward * lastWalkOrder.Value.
Y;
45 v3 = m_componentCreature.ComponentBody.Position +
Vector3.
UnitX;
51 v3 = m_componentCreature.ComponentBody.Position -
Vector3.
UnitX;
57 v3 = m_componentCreature.ComponentBody.Position +
Vector3.
UnitZ;
63 v3 = m_componentCreature.ComponentBody.Position -
Vector3.
UnitZ;
112 m_componentCreature.ComponentLocomotion.JumpOrder =
MathUtils.
Max(
130 m_jumpStrength = valuesDictionary.GetValue<
float>(
"JumpStrength");
131 m_componentCreature.ComponentBody.CollidedWithBody += delegate {
m_collidedWithBody =
true; };
static int Max(int x1, int x2)
virtual bool IsCollidable_(int value)
double m_lastAutoJumpTime
SubsystemTerrain m_subsystemTerrain
virtual void Update(float dt)
SubsystemTime m_subsystemTime
ComponentCreature m_componentCreature
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
static int ExtractContents(int value)
static int ToCell(float x)
ValuesDictionary ValuesDictionary
static float Dot(Vector2 v1, Vector2 v2)
static readonly Vector2 Zero
static readonly Vector2 UnitY
static readonly Vector2 UnitX
static Vector2 Normalize(Vector2 v)
static readonly Vector3 Zero
static readonly Vector3 UnitX
static readonly Vector3 UnitZ