
three-player-controller
A lightweight Three.js player controller with collision, animation, camera, mobile, and vehicles.
hh-hang
Three.js Marketplace
Three.js Marketplace
Kickstart your Three.js and React Three Fiber (R3F) projects with our free and premium components themes and tools. Designed for freelancers, developers, and agencies, each product includes essential features to get you up and running quickly.
Web Development
Help with your project?
Custom Three.js, WebGL, and WebGPU development — from product visualizers to interactive 3D websites.
Links
Featured Badge
Add this badge to your website to show you are featured on Three.js Resources.
Description
three-player-controller is a lightweight, open-source character controller for Three.js. It provides ready-to-use character movement, capsule-based collision detection accelerated by three-mesh-bvh, animation handling, camera collision avoidance, and mobile controls.
Key features:
• Walking, running, jumping, directional movement, and flying
• First-person, third-person, and over-the-shoulder camera modes
• Capsule-based collision detection
• Static and dynamic collider support
• Camera collision avoidance
• Custom key mapping and external input support
• Mobile joystick and touch controls
• Runtime character model switching
• Optional vehicle driving powered by Rapier
The project is available as an npm package and includes live demos for standard character movement, flying, vehicle driving, and mobile controls.
