No convex wall collision (with video)
by andrisalim · in General Discussion · 06/23/2011 (1:59 am) · 2 replies
Can someone give me any helpful suggestions??
I made a cube using milkshape 3D and exported to .dts by using "Torque Game Engine DTS".
I'm currently using Torque 3D 1.1
Then I made walls from the world editor, convex walls using sketch tools.
However, there is no collision between the walls and the cube while other mesh object "player" does have collision with the walls.
Watch below video:
The cube is a rigidshape.
I have also configured a TSShapeConstructor script for the collision issue, but I'm not sure if this is correct.
But it is still not working...
:(
I made a cube using milkshape 3D and exported to .dts by using "Torque Game Engine DTS".
I'm currently using Torque 3D 1.1
Then I made walls from the world editor, convex walls using sketch tools.
However, there is no collision between the walls and the cube while other mesh object "player" does have collision with the walls.
Watch below video:
The cube is a rigidshape.
I have also configured a TSShapeConstructor script for the collision issue, but I'm not sure if this is correct.
singleton TSShapeConstructor(DiceDTS)
{
baseShape = "./dice.dts";
};
function DiceDts::onLoad(%this)
{
%this.renameObject("col-1", "col");
%this.setMeshSize("col", "-1");
%this.addCollisionDetail(-1, "box", "bounds");
}But it is still not working...
:(
About the author
Torque is new and interesting to me. I am keen in learning and sharpening my knowledge of Torque, especially Torque 3D which I am currently working with. :) Cheers, Andri Salim
#2
06/23/2011 (7:48 pm)
Everything you do not want things to go through need colliders. Walls, Tables, chairs, lamps, rocks, trees, buildings, doors and the players or NPC (non player characters)etc...
Torque Owner NCGames