Skip to content

Commit b28a608

Browse files
committed
Use CollisionMesh
1 parent e53c5a6 commit b28a608

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/GateEngine/ECS/3D Specific/Physics/OctreeComponent.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ extension OctreeComponent {
1414
@_disfavoredOverload
1515
public func load(
1616
path: GeoemetryPath,
17-
options: GeometryImporterOptions = .none,
17+
options: CollisionMeshImporterOptions = .none,
1818
center: Position3
1919
) async throws {
2020
try await self.load(path: path.value, options: options, center: center)
2121
}
22-
public func load(path: String, options: GeometryImporterOptions = .none, center: Position3)
23-
async throws
24-
{
22+
public func load(path: String, options: CollisionMeshImporterOptions = .none, center: Position3) async throws {
2523
self.load(
2624
withCenter: center,
27-
triangles: try await RawGeometry(path: path).generateCollisionTriangles()
25+
triangles: try await RawCollisionMesh(path: path, options: options).generateCollisionTriangles()
2826
)
2927
}
3028
}

0 commit comments

Comments
 (0)