PDA

View Full Version : ball in truck problem


jspears
06-18-2008, 06:56 AM
What I am basically trying to do is put a ball (rigid object) into the back of a pick-up truck. The user has control of the truck and move it around the scene. What is the best method to keep the ball from not falling out of the truck? Thanks in advance.

-Jake

.:gt:.
06-18-2008, 11:50 AM
add 1 invisible box with mesh colision on truck body group, and put the ball inside the box

jspears
06-18-2008, 12:06 PM
that works, but... I need to move the truck around (I also need to move the truck bed up and down). When I try moving the 'invisible box' up, the ball just goes right through the box and then the ball just floats there. The ball does not move with the truck. Thanks, Jake

jspears
06-25-2008, 12:46 PM
Okay, I have attached an example of what I am trying to accomplish.

I have a truck. It's floor bed is a floor/ground. It's walls are rigid objects. The walls are hinge-jointed to each other and the bed floor. I also have a sphere/ball. The ball is a rigid object. I also have a "physics mouse tug" on the ball (right click). The truck group moves with the following controls:
O: forward
L: reverse
K: left turn
;: right turn

Things to notice:
-Ball bounces to a stop in the truck bed
-Ball stays in the truck bed when "tugged" on
-When truck moves, it is as if the collision zones stay in place for both the floor and rigid walls.
-When the truck is out of reach of the ball, try "tugging" the ball. It stays in the original truck bed zone.

I am using Deep Creator's latest version.

Please help :confused:

Thanks, Jake

jspears
06-25-2008, 12:57 PM
I just noticed that Esperient Creator Viewer acts a totally different way than Deep Creator Viewer.

ECV Differences:
- Rigid walls in truck bed do not move with the truck.
- Ball does not bounce off of the rigid walls when "tugged".
- turning more than 35 degrees breaks apart the walls, turning back brings them back...
- ECV crashes eventually