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 @@ -2227,14 +2227,15 @@ pub const BodyInterface = opaque {
22272227//
22282228//--------------------------------------------------------------------------------------------------
22292229pub const NarrowPhaseQuery = opaque {
2230+ pub const CastRayArgs = struct {
2231+ broad_phase_layer_filter : ? * const BroadPhaseLayerFilter = null ,
2232+ object_layer_filter : ? * const ObjectLayerFilter = null ,
2233+ body_filter : ? * const BodyFilter = null ,
2234+ };
22302235 pub fn castRay (
22312236 query : * const NarrowPhaseQuery ,
22322237 ray : RRayCast ,
2233- args : struct {
2234- broad_phase_layer_filter : ? * const BroadPhaseLayerFilter = null ,
2235- object_layer_filter : ? * const ObjectLayerFilter = null ,
2236- body_filter : ? * const BodyFilter = null ,
2237- },
2238+ args : CastRayArgs ,
22382239 ) struct { has_hit : bool , hit : RayCastResult } {
22392240 var hit : RayCastResult = .{};
22402241 const has_hit = c .JPC_NarrowPhaseQuery_CastRay (
You can’t perform that action at this time.
0 commit comments