resources (25.5e): @creates/@releases on Physics' handles - every shape maker and phys_shape_free (PhysShape), the body adds and phys_remove (PhysBody), the walker (PhysWalker), and ludic.nav's crowd agents (NavAgent)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a0c6f8ce7f
commit
64b361510d
6 changed files with 21 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ function ph_shape(physics_st: PhysicsState, id: int) -> pointer {
|
|||
|
||||
# a shape let go: a body made with it keeps its own hold until it is removed, and the id may be
|
||||
# handed to the next shape made
|
||||
@releases(PhysShape)
|
||||
export function phys_shape_free(physics_st: mut PhysicsState, id: int) -> void {
|
||||
let s = ph_shape(physics_st, id)
|
||||
if s == null { return }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue