Dad72 Posted July 8, 2014 Share Posted July 8, 2014 Hi, When I approach the wall.... See the result in the link. I do not know to explain it. (but the collisions this product prior to contact with the wall and the character it raises)The speed is also very reduced following settings. http://www.babylonjs.com/playground/#2J98EA#14 I don't understand what happens. How to solve this problem. Is it possible to display the colliders? Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2014 Share Posted July 8, 2014 What's wrong? the collision is done and the system try to solve the collision by moving in a different direction (up in this case). You just need to add gravity:): var velocityAndGravity = velocity.add(new BABYLON.Vector3(0, -9, 0);meshPlayer.moveWithCollisions(velocityAndGravity); Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 8, 2014 Author Share Posted July 8, 2014 What won't, is the character (the box) is not touching the ground. I think that this is due to the collider in ellipse. It would have taken a setting of the character inside the collider for the character touches the ground and the collider is also flush with the ground.because, I can not set everything correctly. It works, collisions works, but the collider is in the ground and thus slowed the movement of the personal. I cannot adjust their movement speed.It would be possible to see the collider (to display)? <fr>Ce qui ne vas pas, c'est le personnage (la boite) ne touche pas le sol. Je pense que cela est dû au collider en ellipse qui surélève la boite. Il aurais fallu un réglage du personnage à l’intérieur du collider pour que le personnage touche le sol et que le collider soit aussi au ras du sol.car la, j'arrive pas a régler tout correctement. ça marche, les collisions marche, mais le collider est dans le sol et ralenti donc le déplacement du perso. je ne peut donc pas régler sa vitesse de déplacement.Ça serais possible de pouvoir voir le collider (de l'afficher) ?</fr> Scene update : http://www.babylonjs.com/playground/#2J98EA#15 Virax 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2014 Share Posted July 8, 2014 No way to display the collider right now I'll add a new property called mesh.ellipsoidOffset to allow you to move the collider around the mesh Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 8, 2014 Author Share Posted July 8, 2014 Cool, it will be useful. Thank you Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 9, 2014 Share Posted July 9, 2014 Hi guys... sorry to interupt, but I am getting... meshPlayer.moveWithCollisions - function not found, on these playground scenes. *shrug* But I've been writing newbie tutorial all day and I am text drunk. "I'm pretty sure you know what I'll ask" ROFL! Now THAT'S just TOO funny! Ellipsoid-to-floor collision happening as mesh moves across the floor/ground. That's an interesting problem. Perplexing, indeed. If you turn off collisions for the player during the move, then the player can walk through walls (and might fall through the ground)... no good. If you turn off ground collisions during the move, then the player falls through the floor/ground... no good. Interesting. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 9, 2014 Share Posted July 9, 2014 You need to refresh your cache Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 9, 2014 Share Posted July 9, 2014 Yep, you is right. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.