当前位置:网站首页>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 :
边栏推荐
- Composition of applet code
- C language - input array two-dimensional array a from the keyboard, and put 3 in a × 5. The elements in the third column of the matrix are moved to the left to the 0 column, and the element rows in ea
- Introduction Guide to stereo vision (7): stereo matching
- Confusion matrix
- Hi Fun Summer, play SQL planner with starrocks!
- 编辑器-vi、vim的使用
- Introduction Guide to stereo vision (1): coordinate system and camera parameters
- Applet (use of NPM package)
- Introduction Guide to stereo vision (3): Zhang calibration method of camera calibration [ultra detailed and worthy of collection]
- Analysis of eventbus source code
猜你喜欢
22-07-04 Xi'an Shanghao housing project experience summary (01)
Figure neural network + comparative learning, where to go next?
Global configuration tabbar
Applet (subcontracting)
An article takes you into the world of cookies, sessions, and tokens
OpenGL - Coordinate Systems
[ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
利用请求头开发多端应用
Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
高性能Spark_transformation性能
随机推荐
优先级队列(堆)
浅谈Label Smoothing技术
SMT32H7系列DMA和DMAMUX的一点理解
Transfer learning and domain adaptation
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
Nodemon installation and use
我的一生.
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Information and entropy, all you want to know is here
C # compare the differences between the two images
图神经网络+对比学习,下一步去哪?
【阅读笔记】图对比学习 GNN+CL
Composition of applet code
LeetCode 556. 下一个更大元素 III
Applet (global data sharing)
Kotlin introductory notes (II) a brief introduction to kotlin functions
Editor use of VI and VIM
Codeforces round 684 (Div. 2) e - green shopping (line segment tree)
L'information et l'entropie, tout ce que vous voulez savoir est ici.
.NET服务治理之限流中间件-FireflySoft.RateLimit