示例#1
0
        public void Test_CreateBulletObject()
        {
            var sph = new SphereShape (1);

            Assert.IsNotNull (sph.CreateGhostObject ());
            Assert.IsNotNull (sph.CreateRigidBody (1));
            Assert.IsNotNull (sph.CreateBulletShape ());
        }
示例#2
0
        public void Test_CreateShape()
        {
            var box = new SphereShape (1);
            var shp = box.CreateBulletShape () as BulletSharp.SphereShape;

            var radius = shp.Radius * PhysicsSimulator.PPM;

            Assert.AreEqual (1, radius);
        }