12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 6939|回复: 11
打印 上一主题 下一主题

[经验分享] 如何使用unity3d制作出真实的物理效果(一)

[复制链接]

5552

主题

2

听众

8万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
11

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2011-11-12 11:29:00 |只看该作者 |倒序浏览




           先看demo:
           

           Demo:
           


            http://www.edy.es/unity/Offroader.html/
           







           Press Enter to restart the level (i.e. if you flip the car or fall outside the terrain)
         

           Press C to change the secondary camera.
           

           Press B to change the stability mode among "Sport / Offroad" (default is "Sport")
           

           Press N to disable all stability features (keeps the plain rigidbody + 4 wheel colliders only). B to reenable.
         

           It's not only a typical road-car not meant to being too stable, but it also carries a heavy 500 Kg (1100 lbs) box! Can you keep it safely with you in all kind of terrains?
         

           Notes:
           

           - Simple PhysX model: rigidbody + some box colliders roughly resembling the car's shape + 4 standard WheelColliders
           

           - REAL center of mass, located around the front seats.
           

           - No angular drag, no arbitrary forces.
           

           - Default tyre friction curves, only stiffness is adjusted (forward: 0.82, sideways: 0.022)
           

           - No parameter is modified at***ntime! (center of mass, rigidbody, drag or angular drag, suspension...)
         

           ---------------------------------------------------------------------------------------------------
         

           This is the typical stability problem when using WheelColliders:
         

           Q: Why my absolutely simple car (rigidbody + 4 wheel colliders) flips over so easily when steering?
           

           A: Because that's exactly how such car would behave in real life!!
         

           So you have created a box, added a rigidbody and four wheel colliders. Maybe you've even used some real car's data (mass, dimensions...). You have added a control script, tested it, and as soon as you gain a bit of speed and do a corner, the car rolls and flips over.
         

           If you could build that in real life, it would do the same! PhysX is not perfect, but resembles the physical behavior of real objects in a fairly good manner.
         

           Also note that the default WheelCollider's friction curve parameters in Unity (1,20000,2,10000,1) define a tyre with almost infinite grip. So the rigidbody has no choice but rolling-over when steering even at low speed. You should first set the last parameter (Stiffness Factor) to 0.01-0.03 to have more realistic tyres, but even in that case the car will roll over when stering at certain (low) speed.
         

           Q: But real cars don't roll over so easily. Why?
           

           A: Because real cars have STABILIZER BARS (aka anti-roll or anti-sway bars)
         


            http://auto.howstuffworks.com/question432.htm
           

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

沙发
发表于 2012-2-24 23:18:12 |只看该作者
谢谢楼主,真是太实用了
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-3-14 23:31:28 |只看该作者
“再次路过……”我造一个-----特别路过
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-3-15 23:30:33 |只看该作者
很有心,部分已收录自用,谢谢
回复

使用道具 举报

797

主题

1

听众

1万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
5568
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-3-16 18:58:56 |只看该作者
  学习
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

6#
发表于 2012-4-19 23:22:44 |只看该作者
都闪开,介个帖子,偶来顶
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2012-4-27 23:19:36 |只看该作者
心中有爱,爱咋咋地
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

8#
发表于 2012-7-6 23:27:34 |只看该作者
真不错,全存下来了.
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2012-7-23 23:21:31 |只看该作者
不错哦,谢谢楼主
回复

使用道具 举报

3795

主题

2

听众

5万

积分

版主

Rank: 7Rank: 7Rank: 7

纳金币
53202
精华
32

活跃会员 优秀版主 推广达人 突出贡献 荣誉管理 论坛元老

10#
发表于 2012-7-24 09:30:37 |只看该作者

高手速来赐教!kismet里面怎么加一个延迟DELAY??



unity特效大家PP_武功盖世呀








【严重分享】Unity3D_3.0破解版[安装包][下载]






高手请赐教!用模型做的特效动画材质丢失








antares_universe(vizio)可视化编辑
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-8-3 00:12 , Processed in 0.078168 second(s), 28 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部