纳金网

标题: HelloRacer Unity制作大概流程(二) [打印本页]

作者: 会飞的鱼    时间: 2011-12-15 14:03
标题: HelloRacer Unity制作大概流程(二)


Racing Physics



Unity includes the powerful PhysX physics engine, but to achieve a realistic experience you need to understand the forces involved in your simulation.
Just as it happens in real life, the weight distribution of a car determines its handling. The weight is divided between each of the four wheels, but this distribution varies as the driver accelerates, brakes and turns. For example, when braking the weight is shifted to the front wheels.
Finding the ideal center of gravity is necessary to create a realistic racing simulation. Front-heavy cars tend to understeer and rear-heavy cars to oversteer, but most important is the center of gravity height, relative to the track, that determines load transfer from side to side.
When cornering, centrifugal force acts at the center of gravity to lean the car toward the outside of the curve, increasing downward force on the outside tires. Sport car designers aim for a low center of gravity to minimize the load transfer from side to side and maximize grip.
Tyre friction and slip are another relationship to understand when adjusting vehicle dynamics. The overall friction force is usually separated into a forward component (to accelerate and brake) and a lateral component (to steer the car). In both directions, when the force acting at the tyre exceeds the grip limit, the wheel starts to spin or slide.
Since cars behave differently at different speeds, it’s necessary to monitor the vehicle’s velocity and adjust the physics parameters accordingly. A dynamic setup improves handling in a similar way as electronics are used to enhance the safety of road cars.
If you are interested in the subject, I would recommend reading the Physics of Racing Series by Brian Beckman. Even if you are not going to write your own racing engine, I always find very helpful to understand how it works.
由 u8  发表

转自作者博客
作者: tc    时间: 2012-1-20 23:28
年末感慨实在是多,三言两语道不完!最让我揪心的还是你,行李备好了没?火车票买了没?别感动,我只是问问,自己的事情还是要自己做滴!哈哈。

作者: 晃晃    时间: 2012-1-20 23:29
除夕夜,春节倒计时,快乐元素在积聚,欢乐军团急行军,迫不急待的我,与新年阳光一道启程,把一年祝福提前给你,祝你红红火火过虎年。

作者: tc    时间: 2012-2-14 23:29
“再次路过……”我造一个-----特别路过

作者: C.R.CAN    时间: 2012-4-27 23:24
爱咋咋地!

作者: 奇    时间: 2012-6-4 23:24
已阵亡的 蝶 随 风 舞 说过  偶尔按一下 CTRL A 会发现 世界还有另一面

作者: 菜刀吻电线    时间: 2012-6-11 23:20
加精、加亮滴铁子,尤其要多丁页丁页

作者: 菜刀吻电线    时间: 2012-6-16 23:20
跑着去顶朋友滴铁

作者: tc    时间: 2012-7-19 23:24
加精、加亮滴铁子,尤其要多丁页丁页

作者: 晃晃    时间: 2012-10-9 23:22
水……生命之源……灌……

作者: tc    时间: 2012-10-16 23:29
既来之,则看之!

作者: 晃晃    时间: 2012-11-3 23:18
再看一看,再顶楼主

作者: 菜刀吻电线    时间: 2013-2-13 23:30
好`我顶``顶顶

作者: 菜刀吻电线    时间: 2013-3-20 23:28
跑着去顶朋友滴铁





欢迎光临 纳金网 (http://rs.narkii.com/club/) Powered by Discuz! X2.5