Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_move: vertical-glide on entity-entity-collision #132552
05/29/07 15:53
05/29/07 15:53
Joined: May 2004
Posts: 53
r0b Offline OP
Junior Member
r0b  Offline OP
Junior Member

Joined: May 2004
Posts: 53
Hi,

is it possible to glide over an entity vertically?
E.g. a player-model that glides over a table-model (with table_height < player_height/2)

I'm using c_move this way:
Code:
 c_move( my, vector( key_force.y * time, 0, 0 ), nullvector, GLIDE ); 


everything is working fine except of vertical-glide on collision with entities...


thanks in advance
rob

Re: c_move: vertical-glide on entity-entity-collis [Re: r0b] #132553
05/29/07 17:16
05/29/07 17:16
Joined: May 2005
Posts: 155
C:\Program files\GStudio6
alphaindigo Offline
Member
alphaindigo  Offline
Member

Joined: May 2005
Posts: 155
C:\Program files\GStudio6
the glide flag is used to make enities glide allong walls etc, to do what you want and make an entity walk over a table you would need to use c_trace. C_trace to a position below the player and then move tha player on the z axis. like this: Code:
 
vec_set(temp.x,my.x);
temp.z -=600;
my.z -= c_trace(my.x,temp.x,IGNORE_ME|USE_BOX|IGNORE_PASSABLE)-3;




beware the sock! - tLempoary...

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