Remove vdist
FossilOrigin-Name: 62594248024eb944735c20b4877f3e6ea07cd93e7f723e718986e86d3c43e944
This commit is contained in:
parent
daa4c19312
commit
d8f4f44468
8 changed files with 34 additions and 18 deletions
|
@ -152,7 +152,8 @@ particle_splash(int type, int num, int fade, const OFVector3D *p)
|
|||
void
|
||||
particle_trail(int type, int fade, const OFVector3D *s, const OFVector3D *e)
|
||||
{
|
||||
vdist(d, v, *s, *e);
|
||||
float d = OFDistanceOfVectors3D(*s, *e);
|
||||
OFVector3D v = OFSubtractVectors3D(*s, *e);
|
||||
v = OFMultiplyVector3D(v, 1.0f / (d * 2 + 0.1f));
|
||||
OFVector3D p = *s;
|
||||
for (int i = 0; i < ((int)d * 2); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue