当前位置:网站首页>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 :
边栏推荐
- uni-app 实现全局变量
- 2310. The number of bits is the sum of integers of K
- Talking about label smoothing technology
- Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method
- AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
- Applet global style configuration window
- 嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
- scipy. misc. imread()
- It's too difficult to use. Long articles plus pictures and texts will only be written in short articles in the future
- Codeworks round 681 (Div. 2) supplement
猜你喜欢
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
Kotlin introductory notes (V) classes and objects, inheritance, constructors
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
Solution to the problems of the 17th Zhejiang University City College Program Design Competition (synchronized competition)
Wxml template syntax
Information and entropy, all you want to know is here
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
2020 "Lenovo Cup" National College programming online Invitational Competition and the third Shanghai University of technology programming competition
Attention is all you need
[code practice] [stereo matching series] Classic ad census: (5) scan line optimization
随机推荐
云计算技术热点
Codeforces round 684 (Div. 2) e - green shopping (line segment tree)
Rebuild my 3D world [open source] [serialization-1]
.NET服务治理之限流中间件-FireflySoft.RateLimit
2309. The best English letters with both upper and lower case
VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
【阅读笔记】图对比学习 GNN+CL
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
It's too difficult to use. Long articles plus pictures and texts will only be written in short articles in the future
STM32 simple multi-level menu (array table lookup method)
Applet network data request
LeetCode 503. 下一个更大元素 II
AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
Rebuild my 3D world [open source] [serialization-2]
Editor use of VI and VIM
Codeworks round 639 (Div. 2) cute new problem solution
Svg optimization by svgo
太不好用了,长文章加图文,今后只写小短文
fs. Path module
Codeworks round 681 (Div. 2) supplement