/// Update the collision detection data for a specific shape in the space. public void ReindexShape(cpShape shape) { cp.AssertHard(!IsLocked, "You cannot manually reindex objects while the space is locked. Wait until the current query or step is complete."); //var body = shape.body; shape.CacheBB(); //shape.Update(body.GetPosition(), body.GetRotation()); // attempt to rehash the shape in both hashes this.dynamicShapes.ReindexObject(shape, shape.hashid); this.staticShapes.ReindexObject(shape, shape.hashid); }
public static void UpdateFunc(cpShape shape, object unused) { shape.CacheBB(); }