Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bounding Box #246610
01/15/09 21:06
01/15/09 21:06
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Hi, I would like to know how to change the bounding box size for collisions and stuff... My models have a tiny boundingbox in the center and it is just ridiculous to use that tiny thing to calculate colisions when moving, or if it gets hit with something, etc! (and I dont want to have to use the polygon flag on all my models...)

I would apreciate if anyone can help me to explain how to change the boundingbox size in design mode (med/wed) and also during runtime (sed).


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Bounding Box [Re: Carlos3DGS] #246615
01/15/09 21:17
01/15/09 21:17
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
c_setminmax(me); as first line in action, will make bounding box cover your model.


3333333333
Re: Bounding Box [Re: Quad] #246801
01/17/09 11:01
01/17/09 11:01
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Great, thanks for the info!


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Bounding Box [Re: Quad] #270777
06/09/09 20:43
06/09/09 20:43
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
at first "c_setminmax(me);" worked fine for me while I was only using flat floors. But now that I am using slopes, ramps, and stairs in my leves my characters get stuck when trying to go upwards on one of these obstacles.

What I am trying to do now is to get a bounding box with the same x and y sizes as the model, but on the z axis raise the lower bound (the side under the feet) to the height of the knees, and then control the z position of the model myself with a scan to the floor or something.

the first two lines of my code in the model's action are these:
Code:
c_setminmax(me);
my.min_z += 10;

but the bounding box is the same as when i only use c_setminmax.
How does min/max_x/y/z work? Can anyone help me out?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Bounding Box [Re: Carlos3DGS] #270779
06/09/09 21:09
06/09/09 21:09
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Have a look at "move_min_z", maybee that helps

Re: Bounding Box [Re: Carlos3DGS] #270780
06/09/09 21:18
06/09/09 21:18
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
sorry, for the stupid question.
When something dosnt work for me there are a few things I add randomly to my code and sometimes it fixes it.
One of those random things I add are wait(1) before or after the lines that dont work, and it worked to add one between those two lines. So I have discovered by accident that you can only change the bounding box once per frame, lol.

In case anyone else might be interested in doing this, the working code to get the bounding box of the size of my model but with the lower edge at the height of its knees is this:
Code:
c_setminmax(me);
wait(1);
my.min_z += 20;



"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1

Moderated by  HeelX, rvL_eXile 

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