Original Post
revamping my particle engine (moving from point sprites to actual billboards. added functionality). i'm having problems computing the particle corners.
i have the current position of the particle, the last position it had, and a size variable. i want to be able to stretch the particle from its last position to its current position, and it should have a width of size units. by the way: the (position-lastPos) vector should be perpendicular to the two sides it joins (the ones in black), and these sides in turn, should have a constant z coordinate (they are contained by planes that are parallel to the XY plane).
here's a diagram:
i tried using the (not so rigorous) linear algebra i know, and it quickly turned ugly. too many instructions to be done for each particle, each frame...
could somebody help me?
btw: lastPos.z isn't necessarily equal to position.z
[edited by - souldreamer on April 19, 2004 2:18:27 PM]
i tried using the (not so rigorous) linear algebra i know, and it quickly turned ugly. too many instructions to be done for each particle, each frame...
could somebody help me?
btw: lastPos.z isn't necessarily equal to position.z
[edited by - souldreamer on April 19, 2004 2:18:27 PM]