File tree Expand file tree Collapse file tree
java/volucris/bindings/box2d/characterMover
resources/classConfigs/characterMover Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import java .lang .foreign .SegmentAllocator ;
99import java .lang .invoke .MethodHandle ;
1010import volucris .bindings .box2d .math .Vec2 ;
11+ import volucris .bindings .core .NativeStructArray ;
1112
1213import static java .lang .foreign .ValueLayout .*;
1314import static volucris .bindings .core .FFMUtils .*;
@@ -56,7 +57,7 @@ public static MemorySegment solvePlanes(
5657 public static @ Nullable PlaneSolverResult solvePlanes (
5758 SegmentAllocator allocator ,
5859 Vec2 targetDelta ,
59- CollisionPlane planes ,
60+ NativeStructArray < CollisionPlane > planes ,
6061 int count
6162 ) {
6263 MemorySegment segment = solvePlanes (
@@ -99,7 +100,7 @@ public static MemorySegment clipVector(
99100 public static @ Nullable Vec2 clipVector (
100101 SegmentAllocator allocator ,
101102 Vec2 vector ,
102- CollisionPlane planes ,
103+ NativeStructArray < CollisionPlane > planes ,
103104 int count
104105 ) {
105106 MemorySegment segment = clipVector (
Original file line number Diff line number Diff line change @@ -34,5 +34,9 @@ struct:
3434
3535native-functions :
3636 - name : b2SolvePlanes
37+ struct-arrays :
38+ - planes
3739 - name : b2ClipVector
40+ struct-arrays :
41+ - planes
3842native-function-pointers:
You can’t perform that action at this time.
0 commit comments