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
0 registered members (), 18,654 guests, and 5 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
Entity: height, width? #133495
06/03/07 13:37
06/03/07 13:37
Joined: Jun 2007
Posts: 43
Montréal
J
Julientdc Offline OP
Newbie
Julientdc  Offline OP
Newbie
J

Joined: Jun 2007
Posts: 43
Montréal
Hello,

How we can have the height and width data of an entity?
with z, y and x

Thank you,
Julien

Re: Entity: height, width? [Re: Julientdc] #133496
06/03/07 14:17
06/03/07 14:17
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Code:

var mySize[3];
entity* ent0;
/************************************
efSize0
*************************************/
function efSize0(_ent, &_size) {
if (_ent == 0) { return(0); }
ent0 = _ent;
_size[0] = ent0.max_x - ent0.min_x;
_size[1] = ent0.max_y - ent0.min_y;
_size[2] = ent0.max_z - ent0.min_z;
return(1);
}
// ...
// efSize0(my, mySize);
// mySize.x <- my length
// mySize.y <- my width
// mySize.z <- my height


edited: it was supposed to be 'modular'

Re: Entity: height, width? [Re: testDummy] #133497
06/03/07 14:55
06/03/07 14:55
Joined: Jun 2007
Posts: 43
Montréal
J
Julientdc Offline OP
Newbie
Julientdc  Offline OP
Newbie
J

Joined: Jun 2007
Posts: 43
Montréal
Thank you, that work


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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