Game Development Community

Object on Path for T3D

by Necrode · in Torque 3D Professional · 06/30/2009 (8:21 pm) · 9 replies

Anybody have a solution for putting an object on a path in T3D (that is not an AIPlayer)?
I tried implementing this old pathShape resource http://www.garagegames.com/community/resources/view/4849 but had no luck porting it to T3D.
Any suggestions welcome, Thanks!

About the author

They locked me in here with a computer, and said I don't get to leave until I've completed a computer game.


#1
07/11/2009 (1:35 pm)
I took another couple passes at it and got pathShape to work with T3D.
http://brousian.org/test/pathShape.cpp
http://brousian.org/test/pathShape.h

The pathed object doesn't seem to collide with the player (the player can't stand on the pathed object), so if anyone has suggestions for making that happen, I'm all ears!
#2
07/13/2009 (1:58 pm)
Even if you could stand on it... it would slide out from under you. There have been quite a few resources for "platforms players can ride" in the past but I can't vouch if any of them are good or could work with T3D with minimal work.

The big question is if you want the player to be able to move while on the platform or if mounting the player to the platform is acceptable. AFAIK option number one has never been done very well in torque. Option number two however shouldn't be too difficult but will require some coding.
#3
07/13/2009 (2:17 pm)
With physx option number 1 should be worlds simpler than with the regular collision code, given the physical material used isn't completely wrong.
#4
07/17/2009 (7:24 am)
A crude method is to mount another StaticShape object to the pathShape to provide a solid object for the player to stand on while the pathShape moves.
#6
08/30/2009 (4:56 pm)
Is this the best method for having scripted objects move ?

Can you supply variables to the path on execution ?
#7
08/31/2009 (2:06 am)
Quote:
The big question is if you want the player to be able to move while on the platform or if mounting the player to the platform is acceptable. AFAIK option number one has never been done very well in torque.

Except in Marble Blast...
#8
12/16/2009 (4:14 pm)
Anyone able to get a pathshape to "follow" along the path, IE constantly orient one of it's axis toward the next point along the path?
#9
12/16/2009 (4:26 pm)
It works, but the current path system in T3D is poor.
If you plan to move objects on a complex curve,you should forget about it.
T3D needs something like TGB Vpath.