M@gg!
23-08-2006 09:48:57
Hi Betajaen,
yesterday if been wasting 7 hours of my life to track down a bug. With no success.
It's still the AddForce bug.
We shot a projectile with a fixed force from a fixed position. Some of the projectiles fly farther as the other ones. The behavior seems not to be deterministic.
I have printed out all parameters I could reach and discovered, that somehow the parameters set from PhysX after the AddForce differ between the far and short flying ones. But the values of two short or long ones are equal.
My assumption is, that NxOgre has a problem with wrong time stepping, but it's just a guess.
The values where shot 4 frames after creation of the projectile.
yesterday if been wasting 7 hours of my life to track down a bug. With no success.
It's still the AddForce bug.
We shot a projectile with a fixed force from a fixed position. Some of the projectiles fly farther as the other ones. The behavior seems not to be deterministic.
I have printed out all parameters I could reach and discovered, that somehow the parameters set from PhysX after the AddForce differ between the far and short flying ones. But the values of two short or long ones are equal.
My assumption is, that NxOgre has a problem with wrong time stepping, but it's just a guess.
The values where shot 4 frames after creation of the projectile.
10:18:14: Bullet10:
10:18:14: NxOgre AddLocalForce_vector: Name: Bullet10 Force: 14.6028 3.42921 0
10:18:14:
10:18:14:
10:18:14: Bullet10:
10:18:14: Bullet10 GetAngularDrehmoment 0 0 0
10:18:14: Bullet10 GetAngularVelocity 0 0 0
10:18:14: Bullet10 GetAngularDamping 0.05
10:18:14: Bullet10 CCDMotionThreshold 0
10:18:14: Bullet10 LinearDamping 0
10:18:14: Bullet10 LinearMomentum 0.730137 0.156715 -0.0011469
10:18:14: Bullet10 LinearVelocity 32.3723 6.94834 -0.0508504
10:18:14: Bullet10 Mass 0.0225543
10:18:14: Bullet10 MassSpaceInertiaTensor 9.47846e-005 9.47846e-005 9.47846e-005
10:18:14: Bullet10 MaxAngularVelocity 7
10:18:15: Bullet11:
10:18:15: NxOgre AddLocalForce_vector: Name: Bullet11 Force: 14.6028 3.42921 0
10:18:14:
10:18:14:
10:18:15: Bullet11:
10:18:15: Bullet11 GetAngularDrehmoment 0 0 0
10:18:15: Bullet11 GetAngularVelocity 0 0 0
10:18:15: Bullet11 GetAngularDamping 0.05
10:18:15: Bullet11 CCDMotionThreshold 0
10:18:15: Bullet11 LinearDamping 0
10:18:15: Bullet11 LinearMomentum 0.486758 0.0995616 -0.000764598
10:18:15: Bullet11 LinearVelocity 21.5816 4.4143 -0.0339003
10:18:15: Bullet11 Mass 0.0225543
10:18:15: Bullet11 MassSpaceInertiaTensor 9.47846e-005 9.47846e-005 9.47846e-005
10:18:15: Bullet11 MaxAngularVelocity 7