Skip to content

Commit

Permalink
fix: bullet debug draw by default should draw nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
lealzhan committed Sep 25, 2023
1 parent 3aebeba commit 2fb7908
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cocos/physics/bullet/bullet-world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export class BulletWorld implements IPhysicsWorld {
this._world = bt.ccDiscreteDynamicsWorld_new(this._dispatcher, this._broadphase, this._solver);
bt.CollisionWorld_setDebugDrawer(this._world, this._debugDraw);

bt.DebugDraw_setDebugMode(this._debugDraw, EBulletDebugDrawModes.DBG_NoDebug);
bt.DebugDraw_setAABBColor(this._debugDraw, 0, 1, 1);
// set color for all shapes
bt.DebugDraw_setActiveObjectColor(this._debugDraw, 1, 0, 1);
Expand Down

0 comments on commit 2fb7908

Please sign in to comment.