I was going to post, and say that I can't get my particles to move, but then I realized that That was probably because I hadn't given them a shape. I assume that a body is assumed to be static by the integrator if it has no shape(more specifically, no mass)
I gave it no mass because I wanted it not to collide. I just realized that this engine would be quite wasteful with these particles. They don't collide, thy don't rotate, they don't even have acceleration. Overhead for these things is a waste of processing power.
Anyway, I wondered about the role of shape. What would you do if you wanted an object to move under the influence of forces, but not collide? Is it possible to make things collide without affecting the thing they ran into? I ask because I have vague notions of massless energy spiders that collide with each other and objects, but without affecting what it runs into. I got that when I was reading ODE's docs on collision callbacks.
The idea is that they are attracted and affected by electromagnetic fields, and live in the sun when not harassing passing fusion torchships, or giving birth to magnetic monopoles in the helium oceans of planet x.
I still have another question. Why does this line(python):
print vel.x, vel.y, self.body.GetLinearVelocity().x,self.body.GetLinearVelocity().y
cause my time/frame to quadruple? I know it's not the print, because I've had much more elaborate print statements in the past.
It gets executed twice per turn while under thrust. Framerate is 60fps nominally.
Edit: Why don't your vectors support multiplication by a float? I tried to multiply velocity by dT and python threw an exception.
I gave it no mass because I wanted it not to collide. I just realized that this engine would be quite wasteful with these particles. They don't collide, thy don't rotate, they don't even have acceleration. Overhead for these things is a waste of processing power.
Anyway, I wondered about the role of shape. What would you do if you wanted an object to move under the influence of forces, but not collide? Is it possible to make things collide without affecting the thing they ran into? I ask because I have vague notions of massless energy spiders that collide with each other and objects, but without affecting what it runs into. I got that when I was reading ODE's docs on collision callbacks.
The idea is that they are attracted and affected by electromagnetic fields, and live in the sun when not harassing passing fusion torchships, or giving birth to magnetic monopoles in the helium oceans of planet x.
I still have another question. Why does this line(python):
print vel.x, vel.y, self.body.GetLinearVelocity().x,self.body.GetLinearVelocity().y
cause my time/frame to quadruple? I know it's not the print, because I've had much more elaborate print statements in the past.
It gets executed twice per turn while under thrust. Framerate is 60fps nominally.
Edit: Why don't your vectors support multiplication by a float? I tried to multiply velocity by dT and python threw an exception.