---
title: "Third Person Controller - s&box library"
description: "A custom third person controller implementation not using the default player controller script and not using any animations."
canonical: "https://sbox.watch/zh-cn/libraries/pmpkn/thirdpersoncontroller/"
generated_at: "2026-11-27T12:35:25.230Z"
---

# Third Person Controller

A custom third person controller implementation not using the default player controller script and not using any animations.

- 类型: 库
- 标识符: pmpkn.thirdpersoncontroller
- 创作者: pmpkn
- 规范地址: https://sbox.watch/zh-cn/libraries/pmpkn/thirdpersoncontroller/
- Markdown: https://sbox.watch/zh-cn/libraries/pmpkn/thirdpersoncontroller/index.md
- sbox.game: https://sbox.game/pmpkn/thirdpersoncontroller/
- 生成时间: 2026-11-27T12:35:25.230Z

## 统计

- 24小时热度: +0
- Terry 评分: 43%
- 收藏: 2
- 好评: 2
- 差评: 0
- 更新时间: 2025年10月23日
- 创建时间: 2025年10月23日
- 大小: 69.8 KB
- 文件: 24


## 描述

A custom third person controller implementation not using the default player controller script and not using any animations.

To use:

Method 1: Prefab method

- just add the Player and camera pivot prefabs into your scene.

Method 2: Manual method:

1. Create an empty entity in your scene and call it anything you want (I chose player)

2. Add the following scripts to it:
- Capsule collider (or any collider) for collision handling and set it up correctly
- Character controller
- Third Person controller

Note: the Third person controller class does not need the capsule collider for gravity since it uses custom ray casting to find the ground.

3. Create another empty entity in your scene and call it Camera Pivot (or anything you want)

4. Make the camera a child of this camera pivot and rename it to "FollowCamera" since this is used to find the camera automatically.

5. add the Spring Arm script to your camera pivot entity and specify the target transform (the object you want to follow, the player in this case)

You can add any player model you want as a child of your player entity.

NOTE: IF THE INPUTS ARE NOT WORKING RESTART YOUR PROJECT!
