Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (TedMar, Ayumi, kzhao), 1,359 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
idea for object avoidance #233135
10/26/08 23:12
10/26/08 23:12
Joined: Mar 2005
Posts: 969
ch
Loopix Offline OP
User
Loopix  Offline OP
User

Joined: Mar 2005
Posts: 969
ch
Hey...

...I have an idea but I miss the knowledge to put it into c-script (as usual cry ). Maybe someone can help me??

I'd like my enemy to send out a c_trace (with use_polygon enabled) to see if there's an object blocking the way. Now if the normal of the hit polygon (e.g from a rock) points to the left, the enemy should turn (smoothly) 45 degrees to the left (and keep that direction for a second...before he turns again towards his destination/goal)

...Same when the normal of the hit polygon points to the right side (the enemy would then turn 45 degrees to the right).

btw. if the normals of the hit polygon are pointing up-or-downwards, this should be ignored...only left and right should count.


Working code will be compensated wink





Re: idea for object avoidance [Re: Loopix] #233150
10/27/08 06:26
10/27/08 06:26
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I'll get it to you tomorrow if someone doesn't beat me to it. And by tomorrow I mean later today. It's 2:26 AM and I need sleep...


xXxGuitar511
- Programmer
Re: idea for object avoidance [Re: xXxGuitar511] #233217
10/27/08 14:58
10/27/08 14:58
Joined: Mar 2005
Posts: 969
ch
Loopix Offline OP
User
Loopix  Offline OP
User

Joined: Mar 2005
Posts: 969
ch
wink


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