View previous topic :: View next topic |
Author |
Message |
DieparBaby

Joined: 05 Dec 2006 Posts: 44 Location: London, Ontario, Canada, eh
|
Posted: Sun Dec 10, 2006 3:15 am Post subject: Coffee's tutor bot...feet in ground |
|
|
I copied the code Coffee (AI Cafe) wrote for spawning a monster bot.
http://minion.planetquake.gamespy.com/tutorial/tutor9.htm
It works great except for the fact that the feet of the monster
are always in the ground, even when I spawn them in the air.
Any idea why this is happening?
Thanks,
DieparBaby |
|
Back to top |
|
 |
Lardarse

Joined: 05 Nov 2005 Posts: 243 Location: Bristol, UK
|
Posted: Mon Dec 11, 2006 6:02 am Post subject: |
|
|
Could be an issue with the model... |
|
Back to top |
|
 |
FrikaC Site Admin

Joined: 08 Oct 2004 Posts: 947
|
Posted: Mon Dec 11, 2006 10:27 am Post subject: |
|
|
There's a mistake in the tutorial. You should always call setsize() after setmodel(), otherwise you get funky bounding boxes. |
|
Back to top |
|
 |
DieparBaby

Joined: 05 Dec 2006 Posts: 44 Location: London, Ontario, Canada, eh
|
Posted: Mon Dec 11, 2006 1:13 pm Post subject: |
|
|
Thank you FrikaC. I also changed the "bot.origin = ..." to "setorigin(bot, ...)"
P.S. Can I spawn() your children?  |
|
Back to top |
|
 |
Lardarse

Joined: 05 Nov 2005 Posts: 243 Location: Bristol, UK
|
Posted: Wed Dec 13, 2006 4:16 am Post subject: |
|
|
Very clever. I don't think I've seen it asked that way before... |
|
Back to top |
|
 |
|