Skip to navigation


3D geometry: SetPointToOrigin

Name: SetPointToOrigin [Show more] Type: Subroutine Category: 3D geometry Summary: Set a point's coordinates to the origin at (0, 0, 0)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * ApplyFlightModel (Part 1 of 7) calls SetPointToOrigin * FireGuns calls SetPointToOrigin * ProcessHorizonLine calls SetPointToOrigin

Arguments: X The ID of the point to set to the origin
.SetPointToOrigin LDA #0 \ Set A = 0 so we set the X-th point to (0, 0, 0) below