Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Octree octree = PhysicsUtilities.ExtractOctree(model);
  2. octree.BuildOctree();
  3.  
  4. Body body = new RigidBody(new TriangleMeshShape(octree));
  5. body.IsStatic = true;
  6.  
  7. CollisionSystem collisionSystem = new CollisionSystemSAP();
  8. collisionSystem.CollisionDetected += OnCollisionDetected;
  9.  
  10. World world = new World(collisionSystem);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement