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 @@ -2219,14 +2219,15 @@ pub const BodyInterface = opaque {
22192219//
22202220//--------------------------------------------------------------------------------------------------
22212221pub 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 (
You can’t perform that action at this time.
0 commit comments