@@ -108,7 +108,6 @@ unsafe struct HitLeafTester<T> : IRayLeafTester where T : IShapeRayHitHandler
108108 public Matrix3x3 Orientation ;
109109 public RayData OriginalRay ;
110110
111- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
112111 public void TestLeaf ( int leafIndex , RayData * ray , float * maximumT , BufferPool pool )
113112 {
114113 ref var voxelIndex = ref VoxelIndices [ leafIndex ] ;
@@ -179,7 +178,6 @@ public readonly unsafe void RayTest<TRayHitHandler>(in RigidPose pose, ref RaySo
179178 hitHandler = leafTester . HitHandler ;
180179 }
181180
182- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
183181 public readonly void GetLocalChild ( int childIndex , out Box childShape )
184182 {
185183 var halfSize = VoxelSize * 0.5f ;
@@ -188,14 +186,12 @@ public readonly void GetLocalChild(int childIndex, out Box childShape)
188186 childShape . HalfLength = halfSize . Z ;
189187 }
190188
191- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
192189 public readonly void GetPosedLocalChild ( int childIndex , out Box childShape , out RigidPose childPose )
193190 {
194191 GetLocalChild ( childIndex , out childShape ) ;
195192 childPose = ( VoxelIndices [ childIndex ] + new Vector3 ( 0.5f ) * VoxelSize ) ;
196193 }
197194
198- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
199195 public readonly void GetLocalChild ( int childIndex , ref BoxWide shapeWide )
200196 {
201197 //This function provides a reference to a lane in an AOSOA structure.
@@ -207,7 +203,6 @@ public readonly void GetLocalChild(int childIndex, ref BoxWide shapeWide)
207203 }
208204
209205
210- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
211206 public readonly unsafe void FindLocalOverlaps < TOverlaps , TSubpairOverlaps > ( ref Buffer < OverlapQueryForPair > pairs , BufferPool pool , Shapes shapes , ref TOverlaps overlaps )
212207 where TOverlaps : struct , ICollisionTaskOverlaps < TSubpairOverlaps >
213208 where TSubpairOverlaps : struct , ICollisionTaskSubpairOverlaps
@@ -228,7 +223,6 @@ public readonly unsafe void FindLocalOverlaps<TOverlaps, TSubpairOverlaps>(ref B
228223 }
229224 }
230225
231- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
232226 public readonly void FindLocalOverlaps < TEnumerator > ( Vector3 min , Vector3 max , BufferPool pool , Shapes shapes , ref TEnumerator enumerator )
233227 where TEnumerator : IBreakableForEach < int >
234228 {
@@ -264,15 +258,13 @@ public struct ConvexVoxelsContinuations : IConvexCompoundContinuationHandler<Non
264258{
265259 public CollisionContinuationType CollisionContinuationType => CollisionContinuationType . NonconvexReduction ;
266260
267- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
268261 public ref NonconvexReduction CreateContinuation < TCallbacks > (
269262 ref CollisionBatcher < TCallbacks > collisionBatcher , int childCount , in BoundsTestedPair pair , in OverlapQueryForPair pairQuery , out int continuationIndex )
270263 where TCallbacks : struct , ICollisionCallbacks
271264 {
272265 return ref collisionBatcher . NonconvexReductions . CreateContinuation ( childCount , collisionBatcher . Pool , out continuationIndex ) ;
273266 }
274267
275- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
276268 public static unsafe void GetChildData < TCallbacks > ( ref CollisionBatcher < TCallbacks > collisionBatcher , ref NonconvexReductionChild continuationChild ,
277269 in BoundsTestedPair pair , int shapeTypeA , int childIndexB , out RigidPose childPoseB , out int childTypeB , out void * childShapeDataB )
278270 where TCallbacks : struct , ICollisionCallbacks
@@ -295,7 +287,6 @@ public static unsafe void GetChildData<TCallbacks>(ref CollisionBatcher<TCallbac
295287 collisionBatcher . CacheShapeB ( shapeTypeA , childTypeB , Unsafe . AsPointer ( ref halfSize ) , 12 , out childShapeDataB ) ;
296288 }
297289
298- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
299290 public unsafe void ConfigureContinuationChild < TCallbacks > (
300291 ref CollisionBatcher < TCallbacks > collisionBatcher , ref NonconvexReduction continuation , int continuationChildIndex , in BoundsTestedPair pair , int shapeTypeA , int childIndexB ,
301292 out RigidPose childPoseB , out int childTypeB , out void * childShapeDataB )
@@ -327,15 +318,13 @@ public unsafe struct CompoundVoxelsContinuations<TCompoundA> : ICompoundPairCont
327318{
328319 public CollisionContinuationType CollisionContinuationType => CollisionContinuationType . NonconvexReduction ;
329320
330- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
331321 public ref NonconvexReduction CreateContinuation < TCallbacks > (
332322 ref CollisionBatcher < TCallbacks > collisionBatcher , int totalChildCount , ref Buffer < ChildOverlapsCollection > pairOverlaps , ref Buffer < OverlapQueryForPair > pairQueries , in BoundsTestedPair pair , out int continuationIndex )
333323 where TCallbacks : struct , ICollisionCallbacks
334324 {
335325 return ref collisionBatcher . NonconvexReductions . CreateContinuation ( totalChildCount , collisionBatcher . Pool , out continuationIndex ) ;
336326 }
337327
338- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
339328 public void GetChildAData < TCallbacks > ( ref CollisionBatcher < TCallbacks > collisionBatcher , ref NonconvexReduction continuation , in BoundsTestedPair pair , int childIndexA ,
340329 out RigidPose childPoseA , out int childTypeA , out void * childShapeDataA )
341330 where TCallbacks : struct , ICollisionCallbacks
@@ -347,7 +336,6 @@ public void GetChildAData<TCallbacks>(ref CollisionBatcher<TCallbacks> collision
347336 collisionBatcher . Shapes [ childTypeA ] . GetShapeData ( compoundChildA . ShapeIndex . Index , out childShapeDataA , out _ ) ;
348337 }
349338
350- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
351339 public void ConfigureContinuationChild < TCallbacks > (
352340 ref CollisionBatcher < TCallbacks > collisionBatcher , ref NonconvexReduction continuation , int continuationChildIndex , in BoundsTestedPair pair , int childIndexA , int childTypeA , int childIndexB , in RigidPose childPoseA ,
353341 out RigidPose childPoseB , out int childTypeB , out void * childShapeDataB )
0 commit comments