Ejemplo n.º 1
0
        public void Test_CreateBulletObject()
        {
            var box = new BoxShape (1, 1, 1);

            Assert.IsNotNull (box.CreateGhostObject ());
            Assert.IsNotNull (box.CreateRigidBody (1));
            Assert.IsNotNull (box.CreateBulletShape());
        }
Ejemplo n.º 2
0
        public void Test_CreateShape()
        {
            var box = new BoxShape (1, 2, 3);
            var shp = box.CreateBulletShape () as BulletSharp.BoxShape;

            var size = shp.HalfExtentsWithMargin.ToDD() * PhysicsSimulator.PPM;

            Assert.AreEqual(new Vector3(1,2,3), size);
        }