2 3d points and a line between them.
i need that in 2d.
i need this for lighting and physics.
with that polygons, the fps will be much higher then when i check every pixel.
my mission is to make a coordinates list from a 2d image.
so check every outer pixels and make a line between those points.
and when the pixels are in a straight line i need one line insteed of multiple lines in a straight line.
i just need a ds list or map with coordinates of the outer vertexes of a 2d sprite.
somebody knows a way to make that?
it will be very usefull with creating 2d dynamic soft shadows and rigid body dynamics.
i was working on both in a while but im stuck at the polygons.
if somebody knows a script for creating a list with the coordinates of vertexes of a 2d sprite. please post it or help me making the script.
after i have that script ill make a script to rotate the coordinates in the list by using lengtdir_x and y.
thanks in advance.
Edited by cambesa, 30 September 2007 - 07:09 PM.