Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
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
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 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 Collision Problem #315923
03/20/10 04:41
03/20/10 04:41
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hi.


When I approach other models, my player tends to get stuck in their bounding box, and prevents my player from moving, unless I press WASD a billion times until I get unstuck.


How can I avoid this problem?


Thanks.
Devon.



EDIT: Movement is done with C_move

Last edited by DevoN; 03/20/10 04:42.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: bounding box Collision Problem [Re: DLively] #316240
03/22/10 16:54
03/22/10 16:54
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I solved it by using polygon instead of bounding box on all the models. But it may be caused by prefabs in the scene.

Re: bounding box Collision Problem [Re: JazzDude] #316242
03/22/10 17:01
03/22/10 17:01
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
GLIDE Flag?

Re: bounding box Collision Problem [Re: Rei_Ayanami] #316474
03/24/10 12:26
03/24/10 12:26
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
@ JazzDude: I still haven't completely figured out how to use polygon - as I use a combination of the both..

Currently I am using the following code, to give my "human" entities proper collision:

Code:
my.polygon=on;
	my.fat=off;my.narrow=off;
	wait(1);
	vec_set(my.min_x,vector(-85,-85,-63));
	vec_set(my.max_x,vector(85,85,50));



This had been working, until my enities come into contact..



@ Rei_Ayanami:

I do use the glide flag.


Edit:
I tried it without the extra code, after Polygon, and my player still gets stuck in other entities, and when I do approach entities, my player sinks into the ground for a second.

My project is also a First Person Shooter, and when I approach the wall, the gun enters the wall, which is why I have the min_x and max_x so high.

Last edited by DevoN; 03/24/10 12:42.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: bounding box Collision Problem [Re: DLively] #316478
03/24/10 13:08
03/24/10 13:08
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Avoid the gun entering the wall by setting it's ZNEAR flag, that allows u to set lower min values.

Re: bounding box Collision Problem [Re: the_clown] #317276
03/30/10 12:25
03/30/10 12:25
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
thanks the_clown! z_near solved that problem!


As far as polygon not working; it works now. I forgot to use_polygon.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.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