Game Development Community

Ghost object

by Tasty Green Pees :-, · in Torque Game Engine · 04/29/2006 (10:18 am) · 5 replies

There is something wrong with some of my models its appears.

They respond to gravity ok and when u fire a projectile at them or apply impulse they respond fine. But when my player walks agains one, he goes into it like liquid.

check it out:

new Item() {
      position = "85.1972 -443.914 133.345";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Box_1";
      collidable = "1";
      static = "0";
      rotate = "0";
   };

is this something wrong with my collision mesh. In milkshape i set it to box. and it seems to have worked fine before.

#1
04/29/2006 (12:23 pm)
I'm not sure if items can collide with players. If you put your mesh in as a normal TSStatic (just place the .dts directly from the Mission Editor) do you collide with it then?
#2
04/30/2006 (12:07 pm)
Yeah. it looks like ur right, paul, when i place a TSStatic() object i collide with it. Is there anyway to allow the player to collide with items. How is it that the player can collide with vehicle items.?

oh an another thing... is it possible to make TSStatic() objects respond to gravity cos mine just stay right where it is put regardless of whether static is set to "1" or "0".
#3
04/30/2006 (12:43 pm)
I gotta ask, why do you need items to be collideable? isn't the point of Items just to pick them up?
#4
04/30/2006 (3:33 pm)
Okay the item in question is a door. when the player enters the correct code in a keypad the door is ment to open (ie. move out of the way) so that the player can go through. however as an item the goor is like a hologram and the player can just pass through it.
#5
04/30/2006 (5:47 pm)
You shouldn't be using an item for a door... the item class has some basic gravity physics, and is made to be picked up. There are a bunch of resources on various ways to make a door, you should be using a staticShape for a door. It doesn't have gravity but it has collision... I don't see why you need gravity for a door though. The only classes with gravity and collision by default are players and vehicles. And RigidShape if you add that... it should be an official part of the engine whenever 1.42 comes out...