Moveable boxes
by Bill Henderson · in Torque Game Engine · 01/13/2002 (2:22 pm) · 10 replies
I was wondering if there was something in torque that allowed static objects like a box or crate to be pushed around?
About the author
#2
01/16/2002 (10:16 am)
Im just guessing here, but .. I remember that vehicles in tribes 2 could be easily pushed by simply walking towards them. Perhaps you can create a simplistic vehicle datablock that can use a crate as a dts and set its weight (mass) to something a normal man could push around, (by modifying this value you could have several types of boxes, wood, metal, paper, etc) of course you will have to deactivate all the events that make the vehicle "mountable" unless you are interested in riding around in a box ! =)
#3
I have considered that but was wondering if there was a simpler way.
01/16/2002 (7:44 pm)
I could have a box car durby :PI have considered that but was wondering if there was a simpler way.
#4
03/15/2002 (8:03 am)
You could download the Halflife SDK and look at the code for the boxes in there (all the stuff like that is in the sdk) maybe it'll help you get a start on your own pushable box class?
#5
07/25/2008 (7:04 pm)
Has anyone found a less "hackish" way to make pushable boxes yet? I really want to know how to incorporate this into my game. Thanks.
#6
07/26/2008 (2:52 pm)
@Dylan: Use the rigidshape class to make your movable items. A good example of this is in Zod's MG Starter Kit
#7
TomFeni
07/26/2008 (2:54 pm)
I use rigid shape class, works really well but took some fine tuning and make sure the center mass is correct..TomFeni
#8
onCollision
getPlayerTransform
setObjectTransform
I dunno, just an idea of a starting point...
07/26/2008 (4:06 pm)
What about something to the effect ofonCollision
getPlayerTransform
setObjectTransform
I dunno, just an idea of a starting point...
#9
07/26/2008 (8:49 pm)
Thanks for your responses. I did end up finding the rigid shape postings and I followed it successfully! Thank you.
Torque Owner Bill Henderson