Saturday, June 5, 2021

Finally back to the restart...

Gonna start over from the beginning, and a box for my peep! I have a 'center of peep', left and right feet, and a destination the peep wants to turn and walk to so first we need dx and dy based on facing to place the left and right feet. We have a current user chosen (cx, cy, cz) which is either the peep spawn point (or current location: px, py, pz) or destination (ultimate? ux, uy, uz). Delta is the difference, ux minus px is dx, and so on. Feet have (rx, ry, rz) and (lx, ly, lz) for right and left. Facing or 'fronting' is the position of the peep plus delta, (fx, fy, fz), so I can have the page draw a pair of triangles representing the peep walking.

No comments:

Post a Comment