The Daily Click ::. Forums ::. Klik Coding Help ::. Some AI help..
 

Post Reply  Post Oekaki 
 

Posted By Message

Heart Break Kid



Registered
  13/05/2003
Points
  1754
30th June, 2006 at 11:28:27 -

1)How do i move an object randomly ( bird's eye view )
2)How can i make a realistic kind of turn? like if i want to take my object to a position from its current position , how will i do that? take the following for explaination!
Image

1> is the position the object is looking at
2> is the position where the object is supposed to go, with a proper ( random thou ) waypoint and change in direction.

and i'am not using MMF or anything , nor i'am planning to do so .. So showing me some MMF examples won't help at all so please go for TGF

Image Edited by the Author.

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
30th June, 2006 at 12:18:01 -

For the smooth turn, hold the object's "target" direction in an alterable value, and always add or subtract from its actual current direction to get it closer to the target direction.

How exactly do you want the object to move randomly? Always -> Set direction to Anything will work, but not very well.

 
http://www.davidn.co.nr - Games, music, living in America

Deleted User
30th June, 2006 at 12:35:25 -

You could use a path movement and make 32 directions for him.

 

Heart Break Kid



Registered
  13/05/2003
Points
  1754
30th June, 2006 at 14:59:57 -

Wong: i know this part , but to move it towards the target i need to have that custom 32 dir movements .. guess someone here can explain me how to make some smooth movement in any of the 32 directions.. ( not the example pack )

Image Edited by the Author.

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Werbad



Registered
  18/09/2002
Points
  235
1st July, 2006 at 07:45:22 -

I would use a ball movement an Direction Calculator for this problem, Direction Calculator has a built-in function for rotating objects toward another, thus no need for an alterable value. I don't know if a ball movement is the best for this but it is simple ^^

 
n/a
   

Post Reply



 



Advertisement

Worth A Click