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
0 registered members (), 18,008 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
Prevent colliding with slopes #304129
01/05/10 09:28
01/05/10 09:28
Joined: Dec 2009
Posts: 8
S
Spkka Offline OP
Newbie
Spkka  Offline OP
Newbie
S

Joined: Dec 2009
Posts: 8
Hi, how can I prevent my character from colliding with the start of a slope? The character auto adepts his tilt when he's on top of a slope. If the character got enough velocity he will go up the slope though but I need him to be able to this walking as well.



Re: Prevent colliding with slopes [Re: Spkka] #304152
01/05/10 12:32
01/05/10 12:32
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
use the front of your player for tracing to the ground wink

Re: Prevent colliding with slopes [Re: Rei_Ayanami] #304163
01/05/10 14:17
01/05/10 14:17
Joined: Dec 2009
Posts: 8
S
Spkka Offline OP
Newbie
Spkka  Offline OP
Newbie
S

Joined: Dec 2009
Posts: 8
Hmm I tried that. You mean the trace for setting the angle corresponding to the slope right? I should use max_x or am I mistaking?

Re: Prevent colliding with slopes [Re: Spkka] #304165
01/05/10 14:41
01/05/10 14:41
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
c_trace(vector(player.x+max_x, player.y, player.z), vector(player.x+(max_x+200)*cos(player.tilt), player.y, player.z+200*cos(player.tilt)), whatever);

not tested

Re: Prevent colliding with slopes [Re: Rei_Ayanami] #305062
01/12/10 18:42
01/12/10 18:42
Joined: Jan 2010
Posts: 7
B
babalski Offline
Newbie
babalski  Offline
Newbie
B

Joined: Jan 2010
Posts: 7
Omg why dont just press E it solves everything.


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