raviranjankumarsinha Posted December 4, 2014 Share Posted December 4, 2014 Hi, I am trying to create 3d Home using Babylonjs and move man (move forward, backward, left, and right) through keyboard with collision enabled without using blender(i mean all through normal babylonjs code) but i am not getting all these, so can someone help me with full source code? ThanksRaviranjan Quote Link to comment Share on other sites More sharing options...
arcanine Posted December 4, 2014 Share Posted December 4, 2014 I don't have a full source example but If I was implementing that myself I would probably use a first person cameraand on keypress of wasd move the camera around the scene within that moving method I would implement collision detection though your scene might be different? You want third person or top down,I think if you describe what you want, and then try and implement it, when you get stuck on a particular thing report back and we'll try our best to help Quote Link to comment Share on other sites More sharing options...
raviranjankumarsinha Posted December 5, 2014 Author Share Posted December 5, 2014 Hi Arcanine, Thanks for your reply. Currently i have made camera.speed = 0 and on keypress i am adjusting the the x,y, and z axis but now i am not able to get how to detect the collission . I am attaching the javascript file what i am using now. My requirements, just think of any house with normal wall and normal man who can move anywhere(but obviously he cannot cross the wall so he have to take turn or whatever), so same thing i want but using keyboard ie. man can move using keyboard(Left, right, Up, down) and i want to disable all mouse events(or it should not move through x axis, i mean house cannot be tilt, i mean bottom part should not lift). Let me know if you still didn't get. ThanksRaviranjanjavacript.txt Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 10, 2014 Share Posted December 10, 2014 I have a demo for you http://www.castorengine.com/babylon/moveCharacter/ 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.