Skip to content

Commit e390932

Browse files
committed
Moved out castRay arg struct from argument to the owner struct.
1 parent 0c60c1a commit e390932

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
@@ -2219,14 +2219,15 @@ pub const BodyInterface = opaque {
22192219
//
22202220
//--------------------------------------------------------------------------------------------------
22212221
pub const NarrowPhaseQuery = opaque {
2222+
pub const CastRayArgs = struct {
2223+
broad_phase_layer_filter: ?*const BroadPhaseLayerFilter = null,
2224+
object_layer_filter: ?*const ObjectLayerFilter = null,
2225+
body_filter: ?*const BodyFilter = null,
2226+
};
22222227
pub fn castRay(
22232228
query: *const NarrowPhaseQuery,
22242229
ray: RRayCast,
2225-
args: struct {
2226-
broad_phase_layer_filter: ?*const BroadPhaseLayerFilter = null,
2227-
object_layer_filter: ?*const ObjectLayerFilter = null,
2228-
body_filter: ?*const BodyFilter = null,
2229-
},
2230+
args: CastRayArgs,
22302231
) struct { has_hit: bool, hit: RayCastResult } {
22312232
var hit: RayCastResult = .{};
22322233
const has_hit = c.JPC_NarrowPhaseQuery_CastRay(

0 commit comments

Comments
 (0)