Skip to content

Commit 5fe0a22

Browse files
committed
move jolt debug to lib
1 parent e397930 commit 5fe0a22

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/lib/gfx3_physics/gfx3_physics_jolt_debug.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Jolt from 'jolt-physics';
22
// ---------------------------------------------------------------------------------------
3-
import { gfx3DebugRenderer } from '@lib/gfx3/gfx3_debug_renderer';
4-
import { Gfx3Jolt } from '@lib/gfx3_physics/gfx3_physics_jolt';
3+
import { gfx3DebugRenderer } from '../gfx3/gfx3_debug_renderer';
4+
import { Gfx3Jolt } from './gfx3_physics_jolt';
55

66
export const drawShape = (shape: Jolt.Shape, matrix: Jolt.RMat44) => {
77
let vertexCount = 0;

src/lib/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,7 @@ export type { TextureTarget } from './gfx3_mesh/gfx3_mesh_material';
118118
export type { Gfx3Viewport, ProjectionMode } from './gfx3/gfx3_view';
119119
export type { vec1, vec2, vec3, vec4, vec5, vec6, vec_any, mat3, mat4, bounds2, bounds3 } from './types';
120120
export type { Sound } from './sound/sound_manager';
121-
export type { EnginePackItem, EnginePackItemList } from './engine/engine_pack_item_list';
121+
export type { EnginePackItem, EnginePackItemList } from './engine/engine_pack_item_list';
122+
// functions ---------------------------------------------------------------------------------
123+
export { makeDebugDraw } from './gfx2_physics/gfx2_physics_box2d_debug';
124+
export { drawShape } from './gfx3_physics/gfx3_physics_jolt_debug';

0 commit comments

Comments
 (0)