Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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