Game Development Community

Question about item's behavior in trigger area

by Cai Yundong · in Torque Game Engine Advanced · 03/19/2009 (2:19 am) · 2 replies

I'm trying to create an item in game with following code.

datablock ItemData(TestFossil1Data)
{
    category = "fossil";
	shapeFile = "~/data/shapes/fossil/fossil1.dts";
    gravityMode = "1.0";
    elasticity = "0.2";
    friction = "0.5";
    //sticky = true;
	preload = true;
};

It can fall like in real world. However, if i put it in a trigger, it will stay in the air. Is there any way to make the item falling? The trigger is designed to detect players, and i haven't implement any code for that. I think the "empty" trigger shouldn't change the behavior of item in it, should it?

Can anyone help me? By the way, I'm using TEGA 1.7.1, and here are 2 pictures attached.

img403.imageshack.us/img403/6237/24529718.jpgimg403.imageshack.us/img403/6318/91978451.jpg

#1
03/20/2009 (8:12 am)
I thought this was fixed, It looks like your item is colliding with the trigger.

If you search around you can find some workarounds for this.

Here is one to get you started, the code might not be the same now but the idea is.

www.garagegames.com/community/forums/viewthread/5761
#2
03/22/2009 (12:05 am)
Thank you very much. I will try it. :)