当前位置:网站首页>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 :

边栏推荐
- Cloud computing technology hotspot
- 3D reconstruction open source code summary [keep updated]
- Newton iterative method (solving nonlinear equations)
- 2020 "Lenovo Cup" National College programming online Invitational Competition and the third Shanghai University of technology programming competition
- Wxss template syntax
- 云计算技术热点
- Composition of applet code
- 太不好用了,长文章加图文,今后只写小短文
- LeetCode 31. 下一个排列
- 2311. Longest binary subsequence less than or equal to K
猜你喜欢

Summary of "reversal" problem in challenge Programming Competition

2020 "Lenovo Cup" National College programming online Invitational Competition and the third Shanghai University of technology programming competition

Summary and Reflection on issues related to seq2seq, attention and transformer in hands-on deep learning

【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识

Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制

LeetCode 503. 下一个更大元素 II

Kotlin introductory notes (II) a brief introduction to kotlin functions

Huber Loss

Progressive JPEG pictures and related

图神经网络+对比学习,下一步去哪?
随机推荐
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
2309. 兼具大小写的最好英文字母
Confusion matrix
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
STM32 simple multi-level menu (array table lookup method)
C # image difference comparison: image subtraction (pointer method, high speed)
Introduction Guide to stereo vision (2): key matrix (essential matrix, basic matrix, homography matrix)
LeetCode 503. 下一个更大元素 II
. Net service governance flow limiting middleware -fireflysoft RateLimit
一次 Keepalived 高可用的事故,让我重学了一遍它
Blogger article navigation (classified, real-time update, permanent top)
520 diamond Championship 7-4 7-7 solution
Introduction Guide to stereo vision (3): Zhang calibration method of camera calibration [ultra detailed and worthy of collection]
Kotlin introductory notes (II) a brief introduction to kotlin functions
OpenGL - Coordinate Systems
2311. 小于等于 K 的最长二进制子序列
Applet (global data sharing)
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
Solution to the problem of the 10th Programming Competition (synchronized competition) of Harbin University of technology "Colin Minglun Cup"
2309. The best English letters with both upper and lower case