Game Development Community

Moving Collision with Shape

by mm · in Torque Game Engine · 02/08/2004 (6:17 am) · 3 replies

Hello,

Let me first say that I am attempting to move the collision shape with an animated model made in Milkshape. What I want to accomplish is make simple Mario style elevators and other such objects that simply move back and forth, I would really be happy if there would be a way to do this simply by animating the model and binding the collision mesh/bounding box to the actual model. Is there a way to do this? I tried to make a collision shape and bind that to the joint when I animated but this didn't seem to work. The collision mesh would only stay at the initial starting place. I noticed that there was another related thread about making animated shapes with moving collision meshes but that thread didn't get any reply. Any help on this would be greatly appreciated.

Matt

Furballz

#1
02/08/2004 (10:57 am)
I don't think that will work, because while the colision mesh will indeed move, there isn't anything in base Torque that would tell the player object that it should move with it. I.E. the collision mesh will go up, but will move through the player, and when the player no longer has anything standing underneath him, he'll fall.

This is the sort of problem some on the forums have been trying to solve by creating a moving interior class.
#2
02/08/2004 (11:30 am)
Matt,

One possibility is to use the pathed interiors resource for this instead:
here

It may be a little cryptic to use currently, but I'm pretty sure this is still being updated.

-Ed
#3
02/09/2004 (2:51 am)
Hey thanks for the replies guys. :) I wasn't sure if what I put in my original post was doable but I thought I would go ahead and ask. Ed, thanks for the link I am going to DL the files and have a look, hopefully I can make sense of it. Thanks again.