Skip to content

Commit 909f730

Browse files
authored
Moved out castRay arg struct from argument to the owner struct. (#14)
1 parent dbebe90 commit 909f730

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/zphysics.zig

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,14 +1942,15 @@ pub const BodyInterface = opaque {
19421942
//
19431943
//--------------------------------------------------------------------------------------------------
19441944
pub const NarrowPhaseQuery = opaque {
1945+
pub const CastRayArgs = struct {
1946+
broad_phase_layer_filter: ?*const BroadPhaseLayerFilter = null,
1947+
object_layer_filter: ?*const ObjectLayerFilter = null,
1948+
body_filter: ?*const BodyFilter = null,
1949+
};
19451950
pub fn castRay(
19461951
query: *const NarrowPhaseQuery,
19471952
ray: RRayCast,
1948-
args: struct {
1949-
broad_phase_layer_filter: ?*const BroadPhaseLayerFilter = null,
1950-
object_layer_filter: ?*const ObjectLayerFilter = null,
1951-
body_filter: ?*const BodyFilter = null,
1952-
},
1953+
args: CastRayArgs,
19531954
) struct { has_hit: bool, hit: RayCastResult } {
19541955
var hit: RayCastResult = .{};
19551956
const has_hit = c.JPC_NarrowPhaseQuery_CastRay(

0 commit comments

Comments
 (0)