Jump to content

Part 2 of my Babylon.js tutorial on MSDN


RaananW
 Share

Recommended Posts

Hi Guys, 

Just wanted to share this link - https://msdn.microsoft.com/en-us/magazine/mt614269

If any of you want to play my half-baked Bowling game you can find it here - https://raananweber.com/babylonBowling/

Click on the pins to shoot, keep the click to shoot stronger, press "r" to reset the scene, and "c" to change the color of the ball :)

 

Enjoy!

Link to comment
Share on other sites

Nice raanan :) I'm better at virtual bowling than I have ever been in a real bowling alley. Two strikes and a spare in 4 attempts :o

 

Only comment, the bowling ball comes back towards me after the collision - my recollection (going back a few years) is that the ball continues on.

 

cheers, gryff :)

Link to comment
Share on other sites

"Throwing the Ball with Strength and Direction"

 

Yuh, a wonderful function and topic... but that is cannon-making 101.  :D  What about the children?!  heh

 

Remember back.  You know... putting many infants in a single room with toy blocks... is fine... until... they learn to throw them.  That's when the serious injuries began.  Are you SURE that you want to make gun-making code... public?  :)

 

mesh.convertToNerf();

Link to comment
Share on other sites

Hey guys,

just got back from a short break-from-normal-life.

Thanks for the feedback!

@Wingnut - Kids nowadays are... different :)My 3yo loves my little bowling game! He learned how to bowl IRL using muji'a sumo bowling (https://www.pinterest.com/pin/178595941442475032/). Our windows are still intact. let's see how long this will last!

@gryff - not sure what you mean - the ball continues until it falls down to the ground and then being relocated back to the camera's position. Did I miss something?

@iiceman - yep, this is sadly an Oimo issue - sometimes when things happen too fast, one or two collisions are being ignored. I think it has something to do with the calculation of the next tick, but i couldn't really debug it. You can see that it happens on Oimo's demo page as well from time to time. Cannon worked better, but 2.1 was using an old version. Using BJS 2.3 I would use cannon to solve this.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...