20 #ifndef ANTKEEPER_GAME_LEGGED_LOCOMOTION_COMPONENT_HPP
21 #define ANTKEEPER_GAME_LEGGED_LOCOMOTION_COMPONENT_HPP
50 std::shared_ptr<::gait>
gait;
std::uint16_t bone_index_type
Bone index type.
Base class for skeleton poses.
Legged terrestrial locomotion.
const pose * midswing_pose
float max_angular_frequency
Maximum angular frequency when turning, in radians per second.
const pose * liftoff_pose
std::shared_ptr<::gait > gait
std::uint8_t leg_bone_count
Number of bones per leg.
float gait_phase
Current phase of the gait cycle, on [0, 1].
bone_index_type body_bone
math::fvec3 target_direction
float stride_length
Distance covered in a single gait cycle.
const pose * midstance_pose
std::vector< bone_index_type > tip_bones
Indices of the the final bones in the legs.
const pose * touchdown_pose
math::fvec3 force
Force vector.