Game Development Community

Spooky spaceship advice

by PrvtHudson · in Technical Issues · 04/20/2006 (9:13 am) · 4 replies

Hi all,

I modelled my first spaceship in Maya. woo hoo Now I want to mount a light to it and have it fly around, like in the Warzone Demo. I can create the ship ok as a static shape within the game btw.

I created an AIPlayer with the spaceship.dts and put it on a path ... but alas, gravity got it. I used setVelocity() in a scheduled event to keep it up ;) Kinda cool ,,, but isn't very graceful.

I played around with different shape types ( static/non-static), I found one that takes mounts but I could not dynamically instantiate it ... ... that's why I tryed using an IPlayer (shapebase)

Questions !
1. Is there a good explanation of static vs (dynamic?) shapes. Statics can have animations ?
2. What do you usually use for this:
It must float, moveable, animateable, mountable


Randy

#1
04/20/2006 (10:07 am)
I think its TLK you need to be useing for the lights to mount.
#2
04/20/2006 (11:36 am)
StaticShapes are subclasses of Shapebase too, just like players. Not to be confused with TSStatics, which are just direct mesh instances. But anyways... do a search for Flying Vehicle to find what you're looking for.
#3
04/24/2006 (5:09 pm)
Thanx Guys

I recognise your name Paul, from I discussion on StaticShapes I have been all over. I didn't want to go the flying vehicle route because I don't want to 'fly' it. I just want it to fly around by itself and shine mounted lights ( like the demo ) . Maybe drop some rigidshape bombs on my bots.

I found the pathShape.cc which gave me the ability to fly the shape on a path. Perfect. However, I am not able to rotate the shape or setTarget() it. It flys my ship backwards. Great resource for a moving platform or elevator etc. My .dts does have an eye().

Am i barking up the wrong tree?
#4
04/24/2006 (6:56 pm)
Flying Vehicle and AIVehicle looks great. Got some good tuts to try, thanx. Tips are always welcome ;)