Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
strange collision box #347976
11/21/10 15:41
11/21/10 15:41
Joined: Dec 2009
Posts: 53
Vyshess Offline OP
Junior Member
Vyshess  Offline OP
Junior Member

Joined: Dec 2009
Posts: 53
I need a collission box for my player-model that has the width and height of this model. So i was using
Code:
c_setminmax(my);

. But that creates a hugh box. there is enough room for two player-models...

I didn`t scaled the model. So, why this strange collision box??

thx for help!


A8 Commercial
A5 Standart
---------------
created games: - Bomber Maniacs
Re: strange collision box [Re: Vyshess] #347978
11/21/10 15:54
11/21/10 15:54
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
'c_setminmax(ENTITY*)' sets BBOX depending on all animation frames, so if BBOX is huge big, that means that in some of the animation frames, model moves far from it's origin.
So here you need to set custom BBOX. Or (if you don't use them) find animation frames that moves too far from the model's origin, and delete them. But I prefer the first solution.
Here is the example:
Code:
my.eflags |= FAT | NARROW; // set both flags 
wait(1); // wait one frame
vec_set(my.min_x,vector(-50,-50,-50)); // set bounding box to individual values
vec_set(my.max_x,vector(50,50,50));

Call this before the while loop. Good luck.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: strange collision box [Re: 3run] #347981
11/21/10 16:04
11/21/10 16:04
Joined: Dec 2009
Posts: 53
Vyshess Offline OP
Junior Member
Vyshess  Offline OP
Junior Member

Joined: Dec 2009
Posts: 53
hmmm...there is no animation frame that would make the box so big... anyway, your first solution fixed my problem. thx 3run!


A8 Commercial
A5 Standart
---------------
created games: - Bomber Maniacs
Re: strange collision box [Re: Vyshess] #348005
11/21/10 17:40
11/21/10 17:40
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You are welcome bro laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: strange collision box [Re: 3run] #348028
11/21/10 22:22
11/21/10 22:22
Joined: Dec 2009
Posts: 53
Vyshess Offline OP
Junior Member
Vyshess  Offline OP
Junior Member

Joined: Dec 2009
Posts: 53
oh i forgot something strange.
if i change the last value (the red one)-> "vec_set(my.min_x,vector(-50,-50,-50));" to -1 or lower, suddenly the player appears at the top of my testroom and falls down to his position that i set in the WED..but why?


A8 Commercial
A5 Standart
---------------
created games: - Bomber Maniacs
Re: strange collision box [Re: Vyshess] #348043
11/22/10 07:05
11/22/10 07:05
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You aren't lowering it, you are increasing it.
You need to keep all that values beyond the -1. Other ways it'll be bugy.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

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