GarageGames/Torque3D — pull request #960 by Winterleaf (2014-11-27 17:46:52+00:00)
Title: An alternative to PathShape

This is from http://www.garagegames.com/community/forums/viewthread/137542

I'm calling this resource WalkableShapes (I'm open to suggestions for better class names). It provides three classes that can be used in games. TSPathShape is a simple path following shape. TSAttachable builds on TSPathShape to add the ability for players to walk on the shape while it's moving. The script interface for this class is almost identical to the traditional PathShape. The setup is slightly different. Since the DataBlock has been eliminated, the shape file is set in the editor. The WalkableShape class is a simple shape object that players can walk on while it's moving. It provides no movement of it's own, but can be mounted to...Anything! So if you want to walk on the back of a flatbed truck, model the bed as a separate shape and mount it to the truck in game as a WalkableShape. It can be mounted to any shape that provides movement. There is a demo level included that has a platform-jumping mini-game and a Cheetah with a platform mounted to the roof where the turret normally mounts. You'll need two connections to try that though.