the documentation says about maxclimbheight: "The maximum height difference allowed to bridge when a collision is found, used for steps etc. Only used when calling move with flyMode set to true."
why only used when fly mode is set to true? the flymode has no collisiondetection, right? that makes no sense On 17 Dez., 08:20, le_unam <[email protected]> wrote: > please! :) > > On 15 Dez., 15:25, le_unam <[email protected]> wrote: > > > does really nobody has experience with walking stairs? ^^ > > fabrice could you please try to help me again? > > > On 14 Dez., 13:53, le_unam <[email protected]> wrote: > > > > Fabrice can you please try to help me again? > > > i found something in the bspcollider.as but it is set as comment, so > > > its not active: > > > > public function move(x : Number, y : Number, z : Number) : Vector3D > > > { > > > var newVelocity : Vector3D; > > > // if (flyMode || _maxClimbHeight == 0 || y >= 0) { > > > newVelocity = moveBy(x, y, z); > > > // } > > > // else { > > > // in two steps to allow climbing stairs > > > // newVelocity = moveBy(x, 0, z); > > > > // do not apply downward force if we're > > > already on solid ground > > > // if (!_onSolidGround) { > > > // newVelocity.y = moveBy(0, y, 0).y; > > > if (_onSolidGround) newVelocity.y > > > = 0; > > > // } > > > // else > > > // newVelocity.y = 0; > > > // } > > > > is this where the walking stairs musst be uncommented or do you think > > > it should work without doing that? maybe you can show me code where > > > the climbing is defined so that i have a chance to think about. > > > > thank you > > > > On 13 Dez., 15:48, le_unam <[email protected]> wrote: > > > > > hey i stil have the problem that i cant walk upstairs. my stairs are > > > > added separately after creating the bsp tree. i set collider true and > > > > i can jump up the stairs by hitting the space bar every step. but i > > > > hope there is a better way for doing this ^^ > > > > does anybody has an example for me where walking upstairs is used? > > > > > would be nice. thank you!
