Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, Quad, PeWi), 488 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
collision hull (level) problem #283628
08/08/09 21:48
08/08/09 21:48
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
hi,

After creating a entity via script I wanted to set the collison hull for level collison for my entity.

her my code:
Code:
wait(1); 
c_setminmax(my);
vec_set (my.min_x,vector(-50,-50,-50));
vec_set (my.max_x,vector(50,50,50));



When I start the level and press F11 a new collison hull is set but the hull is sinking in level geometrie!? Whats wrong?


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: collision hull (level) problem [Re: MPQ] #283646
08/09/09 00:30
08/09/09 00:30
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
using c_setminmax automatically sets the minimum size of min_x min_y min_z and max_x max_y and max_z,

using vec_set(my.min_x etc... will only change that

Re: collision hull (level) problem [Re: MrGuest] #283664
08/09/09 07:49
08/09/09 07:49
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
ok thanks I removed c_setminmax, but it doesnt matter because, c_setminmax is set before minx, miny

hmm

Last edited by MPQ; 08/09/09 08:01.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: collision hull (level) problem [Re: MPQ] #283672
08/09/09 08:23
08/09/09 08:23

C
chris_oat
Unregistered
chris_oat
Unregistered
C



i dont know if this helps, but i had a problem like urs. i just set my.fat = off; or my.narrow = off;
even u not use fat or narrow, as soon as u use c_setminmax u need to disable fat or narrow if u dont need them.

Re: collision hull (level) problem [Re: ] #283692
08/09/09 11:00
08/09/09 11:00
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
ok thanks i will try it out

Edit: It is not working :(, what now?

Last edited by MPQ; 08/09/09 11:11.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: collision hull (level) problem [Re: MPQ] #283698
08/09/09 11:22
08/09/09 11:22
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
You must not set them off, but on. If in doubt look in the manual.

Re: collision hull (level) problem [Re: Tobias] #283702
08/09/09 12:08
08/09/09 12:08
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
sorry, but I read the manaul I tired the way it is described (I think so)

why is this topic moved to c-script? I am using Lite-C


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: collision hull (level) problem [Re: Tobias] #283705
08/09/09 12:15
08/09/09 12:15
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
-

Last edited by MPQ; 08/09/09 14:15.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: collision hull (level) problem [Re: MPQ] #283716
08/09/09 14:33
08/09/09 14:33
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
c_setminmax sets both flags so your first code was right. Also, when you see the new hull size with F11 then it is set correctly. The problem is then not the hull.

Re: collision hull (level) problem [Re: Tobias] #283718
08/09/09 14:47
08/09/09 14:47
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
but why is the new hull sinking in the level geometry?


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com

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