Game Development Community

Joint between object and emitter affecting physics

by Andrew Deters · in Torque 2D Beginner · 03/17/2015 (6:51 am) · 5 replies

I have a ball that is set up to move and bounce around with out slowing down (think Pong). To make that ball look more cool and indicate its abilities I attached an emitter to it with a Revolute Joint (because the truck toy does the same with its exhaust). Everything was working fine until I needed to change the scale of everything to allow better object speed control. After I made everything 10 times smaller the ball no longer bounces when the emitter is attached. Instead the ball will hit a surface and just kind of slide along it and slow down greatly. The only things I changed about the properties of these two objects are Size, Position, and Speed (the emitter is not given any speed and is just expected to hang on to the ball). If needed I will post the code for the creation of these objects.

Thanks for the help, I know I post a lot of questions.

#1
03/17/2015 (9:25 pm)
Try setting the density of the emitters to something crazy small.
#2
03/18/2015 (12:54 am)
I tryed a density of 0, but I did think it could go lower. I will try a negative in the morning
#3
03/18/2015 (6:49 am)
I don't think setting the density will work because the emitter does not have a collision shape or anything like that. I even tried adding a collision shape to the emitter and setting it to interact with nothing, and have a density of 0, but that had no affect on my problem.
#4
03/18/2015 (9:22 am)
looks like i may have fixed it by increasing the density of the ball.
#5
03/18/2015 (10:17 pm)
When I was having issues like this I ended up setting the velocity of the emitters to match the object they were attached to whenever I changed the velocity of the object - hardly ideal.