Пример #1
0
 def test_setCollisionShape(self):
     obj = CollisionObject()
     # Let go of the shape reference, it shouldn't matter.
     obj.setCollisionShape(SphereShape(3))
     shape = obj.getCollisionShape()
     self.assertTrue(isinstance(shape, SphereShape))
     self.assertEquals(shape.getRadius(), 3)
Пример #2
0
 def test_setCollisionShape(self):
     obj = CollisionObject()
     # Let go of the shape reference, it shouldn't matter.
     obj.setCollisionShape(SphereShape(3))
     shape = obj.getCollisionShape()
     self.assertTrue(isinstance(shape, SphereShape))
     self.assertEquals(shape.getRadius(), 3)