Fixed Memory Leak in Collision Callback

This commit is contained in:
n00b
2025-05-21 19:45:56 -04:00
parent daac85c26a
commit e7da6b745c
25 changed files with 1510 additions and 1283 deletions

View File

@@ -52,8 +52,8 @@ function GetWorld2DAutoClearForces()
function CastRay2D( from_x, from_y, to_x, to_y )
function CastRay2D_All( from_x, from_y, to_x, to_y )
sub GetRayHit2D( index, ByRef spr_id, ByRef x, ByRef y, ByRef normal_x, ByRef normal_y )
Sub SetSpriteCollisionShape(spr_id, shape)
Function GetSpriteCollisionShape(spr_id)
Sub SetSpriteShape(spr_id, shape)
Function GetSpriteShape(spr_id)
Sub SetSpriteRadius(spr_id, radius)
Function GetSpriteRadius(spr_id)
Sub SetSpriteBox(spr_id, w, h)
@@ -61,3 +61,5 @@ Sub GetSpriteBoxSize(spr_id, ByRef w, ByRef h)
Sub SetSpriteChain(spr_id, ByRef vx, ByRef vy, v_count, prev_x, prev_y, next_x, next_y)
Sub SetSpriteChainLoop(spr_id, ByRef vx, ByRef vy, v_count)
Sub SetSpritePolygon(spr_id, ByRef vx, ByRef vy, v_count)
Sub SetSpriteShapeOffset( spr_id, x, y )
Sub GetSpriteShapeOffset( spr_id, ByRef x, ByRef y )