Main.as package{ import Box2D.Common.Math.b2Vec2; import Box2D.Dynamics.b2Body; import Box2D.Dynamics.Contacts.b2Contact; import Box2D.Collision.b2Manifold; import Box2D.Dynamics.b2ContactImpulse; public class Main extends BaseMain{ public function M
在虚拟世界中,任何物体都是没有活力的,要想变的真实,Rigidbody是必不可少的组件,下面介绍Rigidbody的各个属性: Mass:质量 Drag:阻力,对象在运动时遇到的空气阻力,0表示没有空气阻力,好比丢一个东西出去,如果这个东西没有阻力的话,则会一直不停的向你丢的方向所运动. Angular Drag:角阻力也称扭矩力,扭矩力是使物体发生转动的一种特殊的力炬. Use Gravity:使用重力,开启后会受到重力影响. Is Kinematic:是否开启动力学,开启后不在受物理引擎的影
Mass Mass of the rigidbody. Linear Drag Drag coefficient affecting positional movement. Angular Drag Drag coefficient affecting rotational movement. Gravity Scale Degree to which the object is affected by gravity. Fixed Angle Can the rigidbody rotate
关于刚体Rigidbody,手册上是这么描述的: Control of an object's position through physics simulation. 通过物理模拟控制一个物体的位置. Rigidbody components take control over an object's position - it makes the objects fall down under the influence of gravity, and can calculate how o