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
1 registered members (TipmyPip), 18,631 guests, and 7 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
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 | 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