weimingtom / bullet

Automatically exported from code.google.com/p/bullet
Other
1 stars 0 forks source link

btKinematicCharacterController move improvements #764

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) in function stepForwardAndStrafe there is an iteration for moving, but when 
we hit nothing the iteration should stop.
https://github.com/VirusFree/Bullet/commit/3b58e32647b3d26a939811ab7ec31a8b6ad2f
293

2) This isn't that important, but i added a Move(vector3 Displacement) function 
that allows a precise single shot move/displacement of the character. If you 
think this may be useful the commit is here 
https://github.com/VirusFree/Bullet/commit/66c08d1197340658e6e52d203510d02047958
11b

Thanks :)

PS. It would be much easier for people to contribute if this was git

Original issue reported on code.google.com by virusfre...@gmail.com on 9 Nov 2013 at 10:28

GoogleCodeExporter commented 9 years ago
I found another thing that might cause problems.
in line 683 this code :

    // quick check...
    if (!m_useWalkDirection && m_velocityTimeInterval <= 0.0) {
//      printf("\n");
        return;     // no motion
    }

will prevent the rest of the function to do onGround , Gravity and 
stepUp/stepDown

Original comment by virusfre...@gmail.com on 9 Nov 2013 at 10:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The new commit with the Move(..) and a fix for the problem i mention above is at
https://github.com/VirusFree/Bullet/commit/e7d214af4b06a8a502e330282efac23c1a780
05b

Original comment by virusfre...@gmail.com on 9 Nov 2013 at 3:56

GoogleCodeExporter commented 9 years ago
moved to https://github.com/bulletphysics/bullet3/issues/78

Original comment by erwin.coumans on 30 Mar 2014 at 5:41