当前位置:网站首页>[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
2022-07-06 10:18:00 【Two water first wood show】
Plug in links : link :https://pan.baidu.com/s/1ZvOnAvFSowBib3ZJ-ombdw
Extraction code :sen5
After importing the plug-in, go directly to Jelly Sprite Demo Scene scene

Core script description :

Body Configuration Determine the shape of the spring ,Num Colliders Number of springs ,Collider Radius Spring radius ,Collider Scale Spring size , Num Attach Points Number of bundled nodes , Attach Point Bundle nodes Eyes
The shader of the object where the script is located is dynamically generated , Shaders will default to Sprite/Defaults Shaders , Maps use UnityJellySprite Of Sprite Parameters ( The first parameter )
Material compatible processing :UnityJellySprite The main texture setting method of the script may be different from that of the old version, and there are also problems of space determination and error reporting, which are modified as follows .

If you need to use your own shader to render the elastic sphere, modify Shader.Find("Sprite/Default") Content is enough .
BlobBehaviour.cs Script description : It is a random time to add a Force The effect of , Let the sphere bounce .m_JellySprite.AddForce Interface to add force ( Note that it is not a rigid body component yes JellySprite(UnityJellySprite Parent script )
problem : How to know collision detection events ?
After running the game, you will find a pile of such objects

It has scripts to monitor physical collision events , And sent events to our objects

So just add event methods to the object script , When it collides with an object, it will send an event to trigger .
Because there are many spring colliders , And the name is the object name Ref Point n In the form of , So we can split the object name and take the first string To identify which sphere it collided with .

We can use these events to do something interesting , such as : A replica of synthetic watermelon .
边栏推荐
- History of object recognition
- Ueeditor internationalization configuration, supporting Chinese and English switching
- 13 medical registration system_ [wechat login]
- 基于Pytorch的LSTM实战160万条评论情感分类
- NLP路线和资源
- Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
- Simple solution to phpjm encryption problem free phpjm decryption tool
- MySQL combat optimization expert 10 production experience: how to deploy visual reporting system for database monitoring system?
- 在CANoe中通過Panel面板控制Test Module 運行(初級)
- C杂讲 浅拷贝 与 深拷贝
猜你喜欢
![13 medical registration system_ [wechat login]](/img/c9/05ad1fc86e02cf51a37c9331938b0a.jpg)
13 medical registration system_ [wechat login]

MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位

Ueeditor internationalization configuration, supporting Chinese and English switching

MySQL實戰優化高手04 借著更新語句在InnoDB存儲引擎中的執行流程,聊聊binlog是什麼?

基于Pytorch的LSTM实战160万条评论情感分类

Introduction tutorial of typescript (dark horse programmer of station B)

History of object recognition

A necessary soft skill for Software Test Engineers: structured thinking

MySQL real battle optimization expert 11 starts with the addition, deletion and modification of data. Review the status of buffer pool in the database

Const decorated member function problem
随机推荐
Use xtrabackup for MySQL database physical backup
The programming ranking list came out in February. Is the result as you expected?
112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
安装OpenCV时遇到的几种错误
Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
MySQL combat optimization expert 05 production experience: how to plan the database machine configuration in the real production environment?
MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位
docker MySQL解决时区问题
Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions
13 medical registration system_ [wechat login]
Retention policy of RMAN backup
基于Pytorch的LSTM实战160万条评论情感分类
CDC: the outbreak of Listeria monocytogenes in the United States is related to ice cream products
好博客好资料记录链接
Target detection -- yolov2 paper intensive reading
13 医疗挂号系统_【 微信登录】
The 32 year old programmer left and was admitted by pinduoduo and foreign enterprises. After drying out his annual salary, he sighed: it's hard to choose
软件测试工程师发展规划路线
What is the current situation of the game industry in the Internet world?
Upload vulnerability