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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 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
Page 2 of 2 1 2
Re: Getting "stuck" where concave blocks intersect [Re: Damocles] #176252
01/13/08 23:26
01/13/08 23:26
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
I never thought of this 'lifting up' before move, too.
Great advice and insight!
Thank you, Damocles!

Re: Getting "stuck" where concave blocks intersect [Re: Pappenheimer] #176253
01/14/08 01:40
01/14/08 01:40
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Quote:

I never thought of this 'lifting up' before move, too.
Great advice and insight!
Thank you, Damocles!




Yup, I second that, thanks Damocles What a relief !

Re: Getting "stuck" where concave blocks intersect [Re: Pappenheimer] #176254
01/14/08 09:10
01/14/08 09:10
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
I think "lift up before move" is a workaround to the problem.

What about if the player is a vehicle?

Re: Getting "stuck" where concave blocks intersect [Re: Frederick_Lim] #176255
01/14/08 09:15
01/14/08 09:15
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
The trick is to adjust the bounding box I think.

Re: Getting "stuck" where concave blocks intersect [Re: Nems] #176256
01/14/08 11:21
01/14/08 11:21
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Additional thoughts:

There are functions already implemented in the acknex move instructions.
for instance, the model can walk over stairs which are lower than the height of the origin of the model.

Shouldn't this instruction already take care of an issue like stucking in a slope?

Re: Getting "stuck" where concave blocks intersect [Re: Pappenheimer] #176257
01/14/08 11:54
01/14/08 11:54
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
I tried adjust move_min_z and move_friction but same.

Re: Getting "stuck" where concave blocks intersect [Re: Pappenheimer] #176258
01/14/08 18:48
01/14/08 18:48
Joined: Mar 2002
Posts: 580
San Francisco
clone45 Offline OP
User
clone45  Offline OP
User

Joined: Mar 2002
Posts: 580
San Francisco
@Pappenheimer: I agree. That's basically why I still think that there's a bug in c_move. However, my entity can still walk up stairs, so luckily everything is working. (PS: howdy!)

I posted all my movement code to the wiki at: http://www.coniserver.net/wiki/index.php/Modified_Kingdom_Hearts_Movement

@F.Lim: I was worried too that Damocles's solution wouldn't work for my entity because his entity floated above the ground and mine is standing on the ground. However, you can keep the entity on the ground and just lift the bounding box slightly off the ground. This might not be a great solution for a car if you're seeking realistic movement, but it worked great for my little goblin game.

Re: Getting "stuck" where concave blocks intersect [Re: clone45] #176259
01/21/08 07:46
01/21/08 07:46
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
There were two reasons for the problem: your movement code plus a bug in c_move.

The bug in c_move causes entities to get entangled on 'hooks' in some cases, in your case on the vertical surfaces of the triangle-shaped blocks you've made the 'hill' from. This special case will be fixed in the next version, but there can still be other sorts of hooks in the ground where the same happens.

For this reason, the real fix is a better movement code, as suggested by Damocles. NEVER move an entity by dragging its bounding box along the ground. ALWAYS keep a distance from the ground. Use c-trace to let the entity float in step-size height above the ground. The reason is not only the above problem, but also that movement by dragging is very slow because of the permanent collisions. If you have 1000 actors moving around, you'd end up with 10 fps with this method of movement.

Check the movement code in the templates.

Re: Getting "stuck" where concave blocks intersect [Re: jcl] #176260
01/21/08 10:24
01/21/08 10:24
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Quote:

NEVER move an entity by dragging its bounding box along the ground. ALWAYS keep a distance from the ground. Use c-trace to let the entity float in step-size height above the ground. The reason is not only the above problem, but also that movement by dragging is very slow because of the permanent collisions. If you have 1000 actors moving around, you'd end up with 10 fps with this method of movement.



Is that mean if I have 1000 entities gliding on wall I will end up with 10 fps as well?

Re: Getting "stuck" where concave blocks intersect [Re: Frederick_Lim] #176261
01/21/08 10:58
01/21/08 10:58
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
You bet. Better don't glide 1000 entities along a wall.

Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

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