Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,134 guests, and 76 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Mdl-Deformation possible with Physics in 3DGS [Re: XNASorcerer] #64560
02/22/06 18:36
02/22/06 18:36
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Okey, that's nothing what I can download! *sigh*

Re: Mdl-Deformation possible with Physics in 3DGS [Re: Pappenheimer] #64561
02/22/06 19:44
02/22/06 19:44
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
Here's the relevant code section
Code:

if (bDentCar!=0 && linSpeed>(CRASH_SPEED) )
{
////////////////////////////
// find closest vertex and dent the car
var i=0; var k=0; var tttt[3];

var min_val=500; var min_i;

while (i < ent_vertices (my))
{
vec_for_vertex(tttt,my,i);
k=vec_dist(tttt,target.x);
if(k<min_val)
{min_val=k; min_i=i;}
i+=1;
}

vec_for_mesh(temp,my,min_i);
vec_scale(temp,0.9);
vec_to_mesh(temp,my,min_i);
ent_fixnormals(my,0);
}




Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1