当前位置:网站首页>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 :
边栏推荐
猜你喜欢
OpenGL - Lighting
编辑器-vi、vim的使用
Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method
Introduction Guide to stereo vision (3): Zhang calibration method of camera calibration [ultra detailed and worthy of collection]
Editor use of VI and VIM
c语言指针深入理解
生成对抗网络
LeetCode 556. 下一个更大元素 III
Progressive JPEG pictures and related
Introduction Guide to stereo vision (1): coordinate system and camera parameters
随机推荐
阿里云发送短信验证码
What is a firewall? Explanation of basic knowledge of firewall
Driver's license physical examination hospital (114-2 hang up the corresponding hospital driver physical examination)
Talking about label smoothing technology
Applet network data request
Uni app implements global variables
Applet (global data sharing)
[code practice] [stereo matching series] Classic ad census: (6) multi step parallax optimization
一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
Alibaba's ten-year test brings you into the world of APP testing
AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
22-07-04 Xi'an Shanghao housing project experience summary (01)
np. allclose
STM32 simple multi-level menu (array table lookup method)
太不好用了,长文章加图文,今后只写小短文
顶会论文看图对比学习(GNN+CL)研究趋势
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
Introduction Guide to stereo vision (2): key matrix (essential matrix, basic matrix, homography matrix)
2311. 小于等于 K 的最长二进制子序列