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, Grant, Neb), 908 guests, and 6 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
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 | 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