Example #1
0
        public override void calculateLocalInertia(float mass, out btVector3 inertia)
        {
            float elem = 0.4f * mass * Margin * Margin;

            inertia = new btVector3(elem, elem, elem);
        }
Example #2
0
 /// <summary>
 /// 慣性を計算する
 /// </summary>
 /// <param name="mass">重さ</param>
 /// <param name="inertia">慣性</param>
 public virtual void calculateLocalInertia(float mass, out btVector3 inertia)
 {
     //act.actorDesc.BodyDescription = new BodyDescription(mass);
     inertia = new btVector3();
 }
Example #3
0
 public BoxShape(btVector3 vector)
 {
     act    = SLAct.createBox(vector.X, vector.Y, vector.Z, 10, false);
     Margin = vector.X;
 }
Example #4
0
 public RigidBody(float mass, IMotionState motionState, CollisionShape collisionShape, btVector3 localInertia)
 {
     shape       = collisionShape;
     MotionState = motionState;
     shape.act.setMass(mass);
     shape.act.setMotionState(motionState);
     inertia = localInertia;
 }
Example #5
0
 public virtual void draw3dText(ref btVector3 location, string textString)
 {
 }
Example #6
0
 public virtual void drawContactPoint(ref btVector3 PointOnB, ref btVector3 normalOnB, float distance, int lifeTime, ref btVector3 color)
 {
 }
Example #7
0
 public virtual void drawLine(ref btVector3 from, ref btVector3 to, ref btVector3 color)
 {
 }
Example #8
0
 public AxisSweep3(btVector3 v1, btVector3 v2, int n, Object o, bool b)
 {
 }