当前位置:网站首页>Unity skframework framework (24), avatar controller third person control
Unity skframework framework (24), avatar controller third person control
2022-07-05 09:24:00 【CoderZ1010】
Catalog
3、 ... and 、 Parameter description
One 、 brief introduction

Avatar Controller Suitable for third person character control , Including camera control , Current initial version v0.0.1 Contains the Avatar Control of three animations :Idle static 、Walk walk 、Sprint Running , adopt Speed Parameter control BlendTree, As shown in the figure :

The thresholds are as follows :

The tool has been uploaded to my development framework SKFramework in , As shown in the figure :


SKFramework Framework open source address :
https://github.com/136512892/SKFramework

Two 、 Instructions
1. Character control
by Avatar Add characters Avatar Controller Components , Realize character control

Avatar Move through Rigidbody Rigid body components drive , Therefore, you need to add rigid body components at the same time , Suppose the character is heavy 70 kg , take Mass Set to 70,Freez Rotation Set to true, As shown in the figure :

by Avatar add to Collider Impactor , And set the appropriate size :


by Avatar add to Animator Components , And designate Animator Controller:

2. Camera control
by Camera Camera add Avatar Camera Controller Components , Realize camera control :

3、 ... and 、 Parameter description
1.Avatar Controller
Main Camera: The main camera Used to follow characters
Sprint Key: Acceleration button When pressing this key The character enters the running state
Walk Threshold: Walking threshold And Animator BlendTree The medium threshold corresponds to
Sprint Threshold: Running threshold And Animator BlendTree The medium threshold corresponds to
Rotate Speed: The rotation value is interpolated The speed of interpolation
2.Camera Controller
Avatar:Avatar figure
Horizontal Sensitivity: Mouse horizontal sensitivity
Vertical Sensitivity: Mouse vertical sensitivity
Rot Y Min Limit: rotate y The minimum limit of the value
Rot Y Max Limit: rotate y Maximum limit of value
Rotation Lerp Time: The time required to interpolate to the target rotation value
Height: The height of the camera from the person
Min Distance Limit: The minimum distance between the camera and the person
Max Distance Limit: The maximum distance between the camera and the person
Scroll Sensitivity: Sensitivity of mouse wheel rolling
Invert Scroll Direction: Whether to turn the direction of the mouse wheel
Obstacle Layer: Obstacles in obstacle avoidance detection Layer layer
among Obstacle Layer For obstacle avoidance detection , For example, place an obstacle in the scene , Put it Layer The level is specified as Default, Suppose it is an obstacle :

take Obstacle Layer Also set to Default:

As shown in the figure , When the camera and the person are blocked by obstacles , The camera will pull forward over the obstacle :

边栏推荐
- Hosting environment API
- C # draw Bezier curve with control points for lattice images and vector graphics
- [code practice] [stereo matching series] Classic ad census: (6) multi step parallax optimization
- Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
- OpenGL - Lighting
- 太不好用了,长文章加图文,今后只写小短文
- notepad++
- np.allclose
- Kotlin introductory notes (VI) interface and function visibility modifiers
- Explain NN in pytorch in simple terms CrossEntropyLoss
猜你喜欢

Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要

什么是防火墙?防火墙基础知识讲解

LeetCode 503. 下一个更大元素 II

Priority queue (heap)

优先级队列(堆)

What is a firewall? Explanation of basic knowledge of firewall

AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
![[reading notes] Figure comparative learning gnn+cl](/img/44/2e13d63ef654663852cbccb342b838.png)
[reading notes] Figure comparative learning gnn+cl

利用请求头开发多端应用

Composition of applet code
随机推荐
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
太不好用了,长文章加图文,今后只写小短文
云计算技术热点
fs. Path module
Rebuild my 3D world [open source] [serialization-2]
Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
Codeforces Round #648 (Div. 2) D. Solve The Maze
Hosting environment API
Figure neural network + comparative learning, where to go next?
【PyTorch Bug】RuntimeError: Boolean value of Tensor with more than one value is ambiguous
Confusion matrix
Talking about the difference between unittest and pytest
OpenGL - Coordinate Systems
驾驶证体检医院(114---2 挂对应的医院司机体检)
np.allclose
OpenGL - Lighting
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
顶会论文看图对比学习(GNN+CL)研究趋势