MaxAngularVelocity, maxLinearVelocity, and datablocks
by Terry Greenlaw · in Torque Game Builder · 04/06/2005 (3:54 pm) · 1 replies
K, another fun one for today...
I'm creating an object using new() with the config = datablock syntax. It's a pinball, so it needs all the physics bells and whistles.
After creating it, getMaxAngularVelocity() returns 0, and getMaxLinearVelocity() returns 1.71251e-038.
If I create the pinball without using the datablock reference, then both these calls return 1e+010.
Based on discussions earlier today, I'm assuming that using the config syntax overwrites all properties, regardless of their existance in the datablock. If that is true, shouldn't the linear velocity also be zero ?
I'm creating an object using new() with the config = datablock syntax. It's a pinball, so it needs all the physics bells and whistles.
After creating it, getMaxAngularVelocity() returns 0, and getMaxLinearVelocity() returns 1.71251e-038.
If I create the pinball without using the datablock reference, then both these calls return 1e+010.
Based on discussions earlier today, I'm assuming that using the config syntax overwrites all properties, regardless of their existance in the datablock. If that is true, shouldn't the linear velocity also be zero ?
Associate Melv May
You are quite correct, it looks like some items were missed from being initialised in the datablock itself.
I've fixed that; expect it in the next-update.
Thanks for the heads-up,
- Melv.