Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 16,301 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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