File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1942,14 +1942,15 @@ pub const BodyInterface = opaque {
19421942//
19431943//--------------------------------------------------------------------------------------------------
19441944pub 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 (
You can’t perform that action at this time.
0 commit comments