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
1 registered members (TipmyPip), 18,633 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
Manually change collision hull size? #422528
05/12/13 00:29
05/12/13 00:29
Joined: Jun 2010
Posts: 590
California
Ruben Offline OP
User
Ruben  Offline OP
User

Joined: Jun 2010
Posts: 590
California
Does anyone know a function I can use to manually change the size of the collision hull that surrounds my player, or any other character in the game?

Re: Manually change collision hull size? [Re: Ruben] #422530
05/12/13 01:01
05/12/13 01:01
Joined: Nov 2006
Posts: 59
Alberta, Canada
Dveyee Offline
Junior Member
Dveyee  Offline
Junior Member

Joined: Nov 2006
Posts: 59
Alberta, Canada
See c_setminmax and min_x, max_x. Of course, you want to keep the collision hull as small as possible!


Accelerated Game Creation Tutorial - Learn how to use 3D Gamestudio's WED with these exciting video tutorials!

Visit our website at http://www.accgames.com.
Re: Manually change collision hull size? [Re: Dveyee] #422532
05/12/13 01:35
05/12/13 01:35
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
my.eflags |= FAT | NARROW; // set both flags to prevent automatic recalculation on scale changes
vec_set(my.min_x,vector(-10,-10,-25)); // set bounding box to individual values
vec_set(my.max_x,vector(10,10,25)) // depending on the model

Check with F11 to see BB changes.....

Re: Manually change collision hull size? [Re: Nems] #422567
05/12/13 23:11
05/12/13 23:11
Joined: Jun 2010
Posts: 590
California
Ruben Offline OP
User
Ruben  Offline OP
User

Joined: Jun 2010
Posts: 590
California
Thank you both. And thank you Nems. I tried your code, and it works great. This is a big stumbling block out of the way. Thanks again. :-)


Moderated by  HeelX, rvL_eXile 

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