Game Development Community

Y velocity weird behavior

by Chris French · in Torque Game Builder · 09/09/2005 (12:53 pm) · 4 replies

Still learing torque script

Description of scene setup:

- 2 static sprite objects and world bounds set
- constant force on objects (gravity), both set up with collision and physics
- im using an impluse force to simulate a jump
- I jump one sprite on to the other
- once they are both at rest i check the Y velocity.
- Y velocity never reaches zero. Stays between -1 and 1 and there is no visible movement
- if i drop back on to the world bounds and check Y velocity it hits zero on contact.


MaxAngularVelocity on both is set to 0.

any ideas?

#1
09/09/2005 (1:41 pm)
What physics attributes to the object have? Like damping, friction, etc :)
#2
09/09/2005 (3:47 pm)
Both are using the following:

datablock fxCollisionMaterialDatablock2D ( playerMaterial )
{
	friction = 0;
	restitution = 0;
	density = 0.5;
	forceScale = 1;
	damping = 0;
};

and there are no custom collision pollys.
#3
09/09/2005 (11:29 pm)
Chris,

There were numerous issues related to an object not ever being able to achieve a resting-contact with another surface. This kind of behaviour is to be expected from the v1.0.2 release. The situation is much better in the coming release.


- Melv.
#4
09/10/2005 (12:49 pm)
Thats good to know. As I'm experiementing alot right now, i just wanted to make sure that I wasn't just screwing it up or something.

Im sure you guys get this alot, but.... "I can't wait" :)

and thanks for the prompt responses.