Game Development Community

Assigning a model to a camera

by Jeff Trier · in Torque Game Engine · 06/13/2003 (8:16 pm) · 2 replies

Basically what I am doing is using a camera to roam around the world as part of my Command View Mode. But I want this camera to be visible and have collision detection, so I want to assign a model to it.

I was wondering what path I should take to assign a model to a camera. I am thinking I need to make a controllable datablock object. Unfortunatly, I can't seem to connect to perlmonkey.org to see the datablock classes I can choose from. So I need to ask you what datablock classes I should concider for a free floating controllable object.

As always, Thank you...
-Jeff

About the author

Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.


#1
06/13/2003 (8:30 pm)
unless you write your own shape code, (for the visual shape)
you are most likely limited to the shapebase methods.
#2
06/13/2003 (9:05 pm)
Thanks Badguy.

I was doing some searching on the ShapeBase Class and I read that I shouldn't use ShapeBaseData directly(I.E. 'datablock ShapeBaseData(Sentinal)', but should use something like StaticShapeData instead. Unfortunatly, StaticShapeData is only for objects that don't move. I couldn't find any references to other ShapeBase classes, namely for an object that does move.

Is there a way to get a list in Torque via some form of dump()command? Or perhaps a listing of them somewhere else? I relied too much on perlmonkey.org's stability. I should have made some print-outs. ;p

Thanks,
-Jeff