UE5 Dog Controller
UE5 Dog Controller
UE5
A controllable dog I made for my game in UE5. I learnt and implemented motion matching for this character locomotion and implemented turn-in-place, foot locking and etc.

I separate the motion matching databases into idle, locomotion and turn-in-place. When the player rotates while moving front/back, I make the dog move 45 degree towards the desired direction. When the player rotates without moving front/back, the dog will enter turn-in-place mode. I design the rotating mode considering quadruped animals cannot move directly to left/right.


Foot Lock based on foot ik position, pre-cancel locking to prevent feet jumping and cancel locking when the lock position is exceeding tolerance.
Features under development: Ledge handling, since the character capsule is in the middle of the dog, when the dog is on ledge there will be cases that the center of mass of the dog is in the air but the dog is not dropping. I'm using another line trace to handling this case.