0_o" I had a feeling I needed to do something with triangles, and I appreciate that you've laid out the math here. Lemme flail about a bit with that equation and see what I can come up with.
I have two units belonging to two players respectively, and movement of the units is currently restricted to the YZ plane (see picture) and handled in a WASD like fashion. What I can't figure out is how to put a camera for both players such that it rests exactly between the two units at all times, while adjusting the zoom according to the distance between the two. I have a feeling it involves something rather simple with regions, but I've never really managed cameras before.
Thanks in advance!
ATTACHMENTS
Concept.jpg
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@SBeier: Go
0_o" I had a feeling I needed to do something with triangles, and I appreciate that you've laid out the math here. Lemme flail about a bit with that equation and see what I can come up with.
I have two units belonging to two players respectively, and movement of the units is currently restricted to the YZ plane (see picture) and handled in a WASD like fashion. What I can't figure out is how to put a camera for both players such that it rests exactly between the two units at all times, while adjusting the zoom according to the distance between the two. I have a feeling it involves something rather simple with regions, but I've never really managed cameras before.
Thanks in advance!