Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,512 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: POLYGON flag with weird results [Re: Superku] #416740
02/03/13 22:17
02/03/13 22:17
Joined: Jan 2013
Posts: 63
Loremaster Offline OP
Junior Member
Loremaster  Offline OP
Junior Member

Joined: Jan 2013
Posts: 63
Wow. Though I feel a bit dumb, it was good learning today. I better understand several things now. I attached a screen with a fairly large grille-model. Models like that need to be set to POLYGON, since I need to pass them. For all other things I use hulls, but let them calculate via c_updatehull. So, for dummies like me (I can't be the first to run into that wall):

Code:
action BBPolyPrecise () {
	wait(1);
	c_updatehull(my,1);
	my.flags |=POLYGON;
	set(my,POLYGON);      //Both lines necessary?
}

action BBStandard () {
	wait(1);
	c_updatehull(my,1);
}



And thanks all.


Last edited by Loremaster; 02/03/13 22:18.
Re: POLYGON flag with weird results [Re: Loremaster] #416741
02/03/13 22:25
02/03/13 22:25
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
No need to feel dumb. Anybody who knows this stuff once didn't know it and hat to learn it the same way you do it right now, right? wink

Code:
my.flags |= POLYGON;
set(my,POLYGON);      //Both lines necessary?

These lines are equivalent. set is just a macro that is defined in acknex.h as follows:
Code:
#define set(obj,flag) obj->flags |= (flag)

so that
Code:
set(my,POLYGON);

is replaced by the precompiler to
Code:
my->flags |= (POLYGON);



Always learn from history, to be sure you make the same mistakes again...
Re: POLYGON flag with weird results [Re: Uhrwerk] #416745
02/03/13 23:48
02/03/13 23:48
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Are you sure that you have to use
c_updatehull(my,1);
? That would be quite surprising. Try to replace the instruction with c_setminmax(my); and keep the wait(1) before it.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Page 2 of 2 1 2

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

Gamestudio download | chip programmers | 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