Game Development Community

Solid Collisions

by USC - IMD student 2 · in Torque Game Builder · 03/09/2006 (3:06 pm) · 1 replies

I want my sprites to use "solid" collisions, so that they are bounded within the level and don't go through walls. However, when I uses physics, my sprites bounce off the wall, and I don't want that either. Is there any way to have "solid" collisions, as opposed to "ghost" collisions, without having to use physics? Or is there any way to manipulate the physics so that there is no bounce?

#1
03/09/2006 (7:34 pm)
By no bounce, I assume you mean when they reach the edge they just stop? If so you'll want to change the collision response to be 'clamp' instead of 'bounce'. See the documentation for setWorldLimit for more.

You probably should ask these kinds of questions in the private forum in the future, discussing the engine/script in detail is restricted only to those forums.