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 {
1942
1942
//
1943
1943
//--------------------------------------------------------------------------------------------------
1944
1944
pub 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
+ };
1945
1950
pub fn castRay (
1946
1951
query : * const NarrowPhaseQuery ,
1947
1952
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 ,
1953
1954
) struct { has_hit : bool , hit : RayCastResult } {
1954
1955
var hit : RayCastResult = .{};
1955
1956
const has_hit = c .JPC_NarrowPhaseQuery_CastRay (
You can’t perform that action at this time.
0 commit comments