Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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