Animal Controller is a flexible arcade-style character controller for animals in Unity, supporting both bipedal and quadrupedal creatures. It is ideal for pet simulators, wildlife games, creature adventures, and stylized exploration titles.
Built with Rigidbody physics, the controller focuses on responsive movement, clean slope handling, animation hooks, and simple customization. It pairs perfectly with the Scooter Controller and follows the same philosophy of fast setup and easy tuning.
Key Features
Dual Locomotion Modes
- Biped mode with tank-style turning and optional strafing
- Quadruped mode with natural turn-then-move controls
- Switch instantly using a simple AnimalType enum
Physics-Based Movement
- Rigidbody-driven acceleration and deceleration
- Walk and run speeds with sprint toggle
- Adjustable grip for sliding or snappy movement
- Forces projected along ground planes for stable slope traversal
- Ground stick force for better hill adherence
Advanced Slope Handling
- SphereCast-based ground detection
- Smoothed ground normal alignment
- Full pitch and roll alignment to terrain
- Forward slope detection with max walkable angle control
- Movement automatically projected onto slopes
Jumping System
- Coyote time for forgiving jumps
- Configurable air jumps including double jump support
- Increased fall gravity for responsive landings
Animation Integration
- Animator-driven locomotion
- Speed parameter mapped to idle, walk, and run
- Grounded state parameter
- Jump trigger support
- Clean blend tree friendly setup
Audio Events
- Footstep events with walk and run differentiation
- Jump and landing audio hooks
- Hard landing detection by impact velocity
- Optional vocalizations with pitch variation
Camera System
- Smooth third-person follow camera
- Dynamic FOV based on movement speed
- Built-in camera collision avoidance
Supported Animal Types
Biped
- Humanoids, birds, kangaroos
- Forward, backward, turning, and optional strafing
Quadruped
- Dogs, cats, horses, wolves
- Faster footstep cadence for four-legged movement
- Natural tank-style turning