src/scene/shared/position_distance.c
Included by contigo.c, lemuria.c, magma_rock.c, magma_rock_inside.c, prox.c, venus_lighthouse.c and yallam.c.
Functions
| Name | Description | |
|---|---|---|
Sint32 | scPosDistance (FIXED *first, FIXED *second) | The distance in whole pixels between two positions, each given by its x and read on through the y and z that follow it, as an actor holds them. |
Functions in detail
scPosDistance
Sint32 scPosDistance(FIXED *first, FIXED *second)
The distance in whole pixels between two positions, each given by its x and read on through the y and z that follow it, as an actor holds them. UB: an actor's x, y and z are separate members, read here as an array.
References Sint32 and sySquartIWRAM().
Referenced by scActorIsFacingNear(), scContigoPauseWhenFaced(), scLemuriaNoticeLeader(), scProxChaseTarget(), scProxPlayChase(), scYallamStopIfFacingNear() and scYallamUpdateRunningChild().
Definition at line 4 of file position_distance.c.