.SetObjectToOrigin LDA #0 \ Zero the object's x-coordinate STA xObjectLo,Y STA xObjectHi,Y STA yObjectLo,Y \ Zero the object's y-coordinate STA yObjectHi,Y STA zObjectLo,Y \ Zero the object's z-coordinate STA zObjectHi,Y RTS \ Return from the subroutineName: SetObjectToOrigin [Show more] Type: Subroutine Category: 3D geometry Summary: Set an object's coordinates to (0, 0, 0)Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FireGuns calls SetObjectToOrigin * ResetRadar calls SetObjectToOrigin
Arguments: Y The ID of the object to set to (0, 0, 0)
[X]
Variable xObjectHi (category: 3D geometry)
High byte of the x-coordinate for an object
[X]
Variable xObjectLo (category: 3D geometry)
Low byte of the x-coordinate for an object
[X]
Variable yObjectHi (category: 3D geometry)
High byte of the y-coordinate for an object
[X]
Variable yObjectLo (category: 3D geometry)
Low byte of the y-coordinate for an object
[X]
Variable zObjectHi (category: 3D geometry)
High byte of the z-coordinate for an object
[X]
Variable zObjectLo (category: 3D geometry)
Low byte of the z-coordinate for an object