Page MenuHome

BGE: Fix for CreateConstraint API
ClosedPublic

Authored by Thomas Szepe (hg1) on Aug 3 2014, 6:02 PM.

Details

Summary

This patch fix two bugs related to CreateConstraint().

  1. Disable linked collision only working with 6DoF constraints.
  2. If all pivot axis rotations setted to zero the linked object disappears.

Diff Detail

Event Timeline

Thomas Szepe (hg1) retitled this revision from to BGE: Fix for CreateConstraint API.
Thomas Szepe (hg1) updated this object.

Wow thanks, I will test it! Will it be added on master?

This bug is caused by setting only 10 parameters in the else condition. So in "axis1.x" (parameter 10) will be written with int 0. and the other parameters are not written.
Only in the DummyPhysicsEnvironment there is a method with only 10 parameters. So I think this is an relict from the old sumo engine. The sake of completeness we should change the method in the DummyPhysicsEnvironment also to 16 parameters, which is actually missing in this patch.

Jorge Bernal (lordloki) edited edge metadata.

Looks good to me.

Note: DummyPhysicsEnvironment already has a CreateConstrain with 16 parameters

This revision is now accepted and ready to land.Feb 25 2015, 11:48 AM
This revision was automatically updated to reflect the committed changes.