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 {
2219
2219
//
2220
2220
//--------------------------------------------------------------------------------------------------
2221
2221
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
+ };
2222
2227
pub fn castRay (
2223
2228
query : * const NarrowPhaseQuery ,
2224
2229
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 ,
2230
2231
) struct { has_hit : bool , hit : RayCastResult } {
2231
2232
var hit : RayCastResult = .{};
2232
2233
const has_hit = c .JPC_NarrowPhaseQuery_CastRay (
You can’t perform that action at this time.
0 commit comments