当前位置:网站首页>Kinect2 for unity3d - avatardemo learning
Kinect2 for unity3d - avatardemo learning
2022-07-27 19:04:00 【Miracle Fan】
AvatarDemo Study
List of articles
1.Avatar Controller
1.1 Introduce
AvatarController Yes, it will Kinect The captured user actions are transferred to the components of the character model

1.2 Related properties
| Property: | Description: |
|---|---|
| Player Index | Player index ,0 Represents the first ,1 Represents the second |
| Mirrored Movement | Whether the character model faces the player |
| Vertical Movement | Whether the model allows vertical movement |
| Horizontal Movement | Whether the model can move horizontally |
| External Root Motion | Model root Whether the motion is applied by other components or scripts |
| Finger Orientations | Whether finger direction is allowed |
| Move Rate | The rate at which the model moves in the scene |
| Smooth Factor | Smoothing factor for model motion and joint rotation |
| Offset Node | The object of the game transform Is relative (optional). |
| Pos Relative to Camera | If enabled , The position of the model relative to the camera is relative to that of the player Kinect The position of the sensor is the same . |
| Pos Rel Overlay Color | Whether the position of the model matches the color image ( Only in Pos-rel-to-camera In mode ). |
| Grounded Feet | Whether the feet of the model must be pasted on the ground . |
| Apply Muscle Limits | Whether to apply the muscle limitation of human like model . |
| Flip Left Right | Whether it turns left and right relative to the sensor |
| Horizontal Offset | The horizontal offset of the character's position relative to the user's spine base . |
| Vertical Offset | The vertical offset of the character's position relative to the base of the user's spine . |
| Forward Offset | The forward offset of the character's position relative to the base of the user's spine . |
2.Avatar Controller Classic
2.1 Introduce
AvatarControllerClassic It's a AvatarController Alternative components , It allows users to manually map model joints to human joints , And track through sensors


2.2 Related properties
| Property: | Description: |
|---|---|
| Player Index | Player index ,0 Represents the first ,1 Represents the second |
| Mirrored Movement | Whether the character model faces the player |
| Vertical Movement | Whether the model allows vertical movement |
| Horizontal Movement | Whether the model can move horizontally |
| External Root Motion | Model root Whether the motion is applied by other components or scripts |
| Finger Orientations | Whether finger direction is allowed |
| Move Rate | The rate at which the model moves in the scene |
| Smooth Factor | Smoothing factor for model motion and joint rotation |
| Offset Node | The object of the game transform Is relative (optional). |
| Pos Relative to Camera | If enabled , The position of the model relative to the camera is relative to that of the player Kinect The position of the sensor is the same . |
| Pos Rel Overlay Color | Whether the position of the model matches the color image ( Only in Pos-rel-to-camera In mode ). |
| Grounded Feet | Whether the feet of the model must be pasted on the ground . |
| Apply Muscle Limits | Whether to apply the muscle limitation of human like model . |
| Flip Left Right | Whether it turns left and right relative to the sensor |
| Horizontal Offset | The horizontal offset of the character's position relative to the user's spine base . |
| Vertical Offset | The vertical offset of the character's position relative to the base of the user's spine . |
| Forward Offset | The forward offset of the character's position relative to the base of the user's spine . |
| Hip Center | The model position attribute is monitored from each joint , The same below |
| Spine | Avatar transform that will receive the respective user joint orientation. |
| Shoulder Center | Avatar transform that will receive the respective user joint orientation. |
| Neck | Avatar transform that will receive the respective user joint orientation. |
| Clavicle Left | Avatar transform that will receive the respective user joint orientation. |
| Shoulder Left | Avatar transform that will receive the respective user joint orientation. |
| Elbow Left | Avatar transform that will receive the respective user joint orientation. |
| Hand Left | Avatar transform that will receive the respective user joint orientation. |
| Fingers Left | Avatar transform that will receive the respective user joint orientation. |
| Thumb Left | Avatar transform that will receive the respective user joint orientation. |
| Clavicle Right | Avatar transform that will receive the respective user joint orientation. |
| Shoulder Right | Avatar transform that will receive the respective user joint orientation. |
| Elbow Right | Avatar transform that will receive the respective user joint orientation. |
| Hand Right | Avatar transform that will receive the respective user joint orientation. |
| Fingers Right | Avatar transform that will receive the respective user joint orientation. |
| Thumb Right | Avatar transform that will receive the respective user joint orientation. |
| Hip Left | Avatar transform that will receive the respective user joint orientation. |
| Knee Left | Avatar transform that will receive the respective user joint orientation. |
| Foot Left | Avatar transform that will receive the respective user joint orientation. |
| Hip Right | Avatar transform that will receive the respective user joint orientation. |
| Knee Right | Avatar transform that will receive the respective user joint orientation. |
| Foot Right | Avatar transform that will receive the respective user joint orientation. |
| BodyRoot | Model transform Will move through the player's posture , If not specified , Will use top-level transformation |
3.Avatar Scaler
3.1 Introduce
AvatarScaler It is a component that scales the body of a human model according to the body size of the tracked user .

3.2 attribute
| Property: | Description: |
|---|---|
| Player Index | Player index , Tracked by this component |
| Mirrored Avatar | Whether the model faces the player |
| Body Scale Factor | Body scale factor ( Including arms and legs ), It can be used for fine adjustment of model scale . |
| Body Width Factor | Body width scaling factor , It can be used to fine tune the width scale of the model . If set to 0, The body scale factor will be used for height and width scaling |
| Arm Scale Factor | The scaling factor attached to the arm , Used for fine-tuning the scale of the model arm |
| Leg Scale Factor | The scaling factor attached to the leg , For fine adjustment of model leg scale |
| Continuous Scaling | Whether the zoom is continuously updated Or calibration scale |
| Smooth Factor | Smoothness index when scaling continuously |
| Foreground Camera | The camera is used to cover the model on the background . |
| Debug Text | Show avatar-scaler Of debug messages UI Text |
4.Demo1 demonstration


5.Demo2 demonstration


For English documents, please see k2docs
边栏推荐
- SSM项目使用过滤器实现登录监听
- Jmeter接口自动化-如何解决请求头Content-Type冲突问题
- MySQL 06 事务、视图、索引、备份和恢复
- 模仿线程扣除
- Code interview of Amazon
- 地图找房的实例
- Study notes of Microcomputer Principles - general integer instructions and Applications
- Low noise anion fan touch IC
- Docker - docker installation, MySQL installation on docker, and project deployment on docker
- Personal Center - order business process
猜你喜欢
随机推荐
Leetcode brushes questions the next day
Ruiji takeout SQL table
Redis annotation
normal distribution, lognormal distribution,正态随机数的生成
瑞吉外卖笔记
Interviewer: what do you think is your biggest weakness?
C static method and non static method
Sentinel1.8.4 persistent Nacos configuration
MySQL 02 初体验
电磁场学习笔记-矢量分析和场论基础
Led learning eye protection table lamp touch chip-dlt8t10s-jericho
Latex使用-控制表格或者图形的显示位置
Interceptor interceptor
订单超时取消 及 按类别查询商品
Matplotlib (basic usage)
ridis命令笔记
NPM's ID card and dependence
地图找房的实例
模仿线程扣除
ES6数值的扩展









