Game Development Community

How to take the ground and drop it in another place?

by Douglas Higa · in General Discussion · 04/28/2006 (5:36 am) · 4 replies

Is it possible to make an excavator that takes the ground and drops it on a truck? I dont have any idea of how to do this, someone could help me please? I have already done the excavator and I control it using animations that are in its .dts file.

#1
05/02/2006 (12:29 pm)
Could you animate it?
#2
05/02/2006 (1:01 pm)
You're going to have to "fake" this, but here's what I'd try.

1) Attach a named node to the bucket of my excavator unit - this will be used to mount an object to when we're digging.

2) Create a trigger that lets the engine know when the bucket has come in contact with the terrain.

3) When the above trigger fires, I'd load a shape (dts) and mount it to the bucket node.

Now you have dirt n the bucket - as for making the terrain actually dip, you could look into how the terrain editor handles it. Of course, if it's networked - that could be a problem.

Also, you need to realize that any changes you make to the terrain file aren't going to be reflected in the lighting in real-time using stock Torque.
#3
05/02/2006 (1:03 pm)
Depends on what you want from it.

you could just trick the user.
do you need to dig a hole?
do you need to be able to cover something in the dirt?

if not,
you could use a partical system to fool the user watching it as it leaves the bucket.
and have the truck have an animation that fill's the box.
#4
05/31/2006 (9:43 am)
No more ideas???