Jump to content

Teeter Totter


Statics
 Share

Recommended Posts

Hello, 

I have been working on building a teeter totter but have run into some problems.

Here is what I've got so far.  http://www.babylonjs-playground.com/#1IJNNB#2

The issue I'm having is when I delete stuff it doesn't adjust the moment correctly. I'm wondering if the best thing to do is to switch the physics engine on but I don't know if I can the precision I want that way.

I was also wondering if there was a way to have an adjustable size weight where a user could user a slider to change it.

Thanks!!

Link to comment
Share on other sites

I searched for teeter totter (which sounds a bit NSFW), coz I had no idea what it is!

So I guess you mean a weighting scale or a seesaw?

You can try turning on a physics engine and see if it helps, but it seems like oyu managed to simulate the physics already yourself. I guess you will encounter certain problems when trying to emulate physics.

I tried removing an item and was wondering how the entire thing works - when adding you set the currentWeight variable. But when removing, the currentWeight is not set at all. Maybe this is why it doesn't work when removing one item from the TeeTo?

 

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...