Skip to content
Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Download Free Animation Software – Let's Learn How to Do Everything!

  • Step-by-Step MMD instructions
  • DOWNLOADS
  • Troubleshoot, Fix MMD
  • Site Contents
  • Reggie Replies Q&A
  • Homework!
  • What IS MMD?
    • Download MikuMikuDance Newest Latest Version of MMD
  • “HOW TO”
    • Raycast RAY-MMD Effect Tutorials
  • BONUS PAGES
    • Why convert PMD models to PMX?
  • HALL of CHAMPIONS
  • Tutorial Categories
  • About
    • Privacy Policy
  • Toggle search form
  • LearnMMD.com's Video Dojo Expo FIVE
    Beach-side Pool-side “Hot August Nights” – Video Dojo Expo FIVE CONTESTS
  • Set up Kinect 360 motion capture for MMD! Kazuki Matsuoka
  • Make Custom MMD Models using Downloaded Parts BigPerryman
  • Customized Skydome replace stages, enhance MMD animations MMD Tutorials
  • Adjust the Shadows in MikuMikuDance KillerBeer
  • Bandizip® keeps Japanese file names intact when Extracting ZIP folders Bandizip
  • You can download new rio carnival models by shiro nekovocaloid
    Download new Rio Carnival models by shiro-nekovocaloid, Miku, Haku and Luka! "the making of" my video
  • LearnMMD.com _ MikuMikuDance MMD Tutorials
    Almost Photo-realistic renders in MMD using Shaders and Effects Advanced Shader Technique

Create Bouncing Ball using MMD Physics Engine

Posted on November 5, 2016June 9, 2017 By Trackdancer 2 Comments on Create Bouncing Ball using MMD Physics Engine

A feature article on LearnMMD by Trackdancer2015!I want to make a bouncing ball. How can I make a ball that bounces on its own? How can I apply physics to my bouncing ball?

The MMD physics engine is powerful. In this tutorial we will make a dynamic model, a bouncing ball, which takes full advantage of the MMD physics engine!

Use PMDE to create a Bouncing Ball for MMD!

Learn to make a Bouncing Ball model from scratch!

If you’re using the PMD Editor, make sure you’re using the latest version (version 0.1.3.9) like we are as the earlier versions might not have the model making functions.

Let’s get started!

In the PMDView window, go to the bottom of the Edit menu and choose the “Simple Primative Add” function.

We create a sphere in PMXE pmd-primative_select as the first step in making a Bouncing Ball model from scratch!

This opens up a new panel. Choose the sphere and change both the longitude and latitude values both to 16 and the radius value to 1.0. Then click on the “Adding” button. This will give us a nice smooth sphere that is sitting in the center of the screen and halfway embedded into it.

We create a sphere in PMXE pmd-primative_select

Note that when created the sphere is by default weighted to the center bone so when you move that bone in MMD the ball will move with it.

But a ball embedded into the floor does us no good so we’re going to change that. Also we’re going to need another bone to control the ball. So, let’s address that first by going to the bone tab in the main PMD window and right click anywhere in the bone list view and select “Add>At the end add”. This creates a new bone which we will name “ball” – make sure you name the bone on both the Japanese as well as English side in the labels field. Click on the “Move” button” – both the “Rot” and “Move” buttons should be depressed as we want a Rot/Move bone – this is displayed in the MMD and PMD displays as a square bone. Rotation only bones are displayed as a circle.

W are making a bouncing ball using PMXE and the MMD Physics Engine.

pmd-ball_bone

Now make the center bone the parent of the ball bone and the ball bone the child of the center bone. We need this hierarchy for the next steps.

parent-child

Select the new ball bone in the bone tab then go back to the PMDView display and select the “W” button. This opens the weight painting controls. In the display all the vertices


ADVERTISEMENT


should be black. Make sure the ball bone is the focus bone in the weight painting panel’s bone focus field. Then click on the start button and paint all the vertices until they change to red. Depending on how you set up your PMDView display controls you might not see any vertices until you click on the start button. In any case, once all the vertices are painted red, the ball is now completely weighted to the ball bone. Unclick the start button and close the weight painting panel.

The ball is now completely weighted to the ball bone

We’re going to move the ball so that it sits exactly on the floor. Make sure both the “V” and “B” controls are selected and then select all the bones and the vertices that makes up the ball. Then click on the “C” button to open the Object Operations panel. Go to the value tab and under the “Move” button in the middle (Y) field, enter 1.00. Then click on the “Move” button and everything will move up exactly 10 centimeters. Close the Object Operations panel. Go back to the bones tab and change the center bone’s Y axis value back to “0”. You should now be able to clearly see both bones in the PMDView window.

pmd-object_operation

Next we’re going to add physics to the ball but before that go to the Display Pane tab. In the list view right click and select “add new”. This creates a new category – rename this to “ballcontrol” in both the Japanese and English side of the label field. With this category selected, next to the “?Add” button, open the bone selection list. There should be only one bone in there: ball. Click on the “?Add” button. This will now be added to the category list so that we can easily find the bone in MMD and with this model, it is absolutely important that we can see this bone listed in the MMD frames display bone list as normally, after the next steps, this bone is invisible and unselectable unless the physics engine is completely turned off.

This bone is invisible and unselectable unless the physics engine is completely turned off.

Now go to the physics tab (Rigid body). Create a new physics by right clicking on the list view display. As with the other tabs, just right click on the list field to add/create another item. You can either select “Add to this position” or “At the end add” to add the bone. With only a single physics it doesn’t matter where it appears on the list as it will be the only one. Label this bone “BallPhysics” on both the Japanese and English side of the label field.

Use the following properties for this physics:

Related bone – ball
Type – Physics
Shape – sphere
Group – 16 – warning: make sure none of the boxes underneath are checked or the ball will drop through the floor!
Radius – 1
Location – y=1.00

Physics Parameters:

Mass: 1 (default)
Move atten: change to 0.25
Rot damp: change to 0.25
Friction: change to 0.125

Now with only these values set what we’ve done is to build a brick. The ball would just drop to the floor and remain there unless it’s is kicked. But we want the ball to bounce so we will need to change the Repulsion value.

For now make the Repulsion value 0.75. This will give us a ball with a good amount of bounce. However, if you want a balloon filled with helium, make this value 1.0 or greater.

pmd-ball_physics

Next go to the Joints tab and create a new joint. Label the new joint “ballJoint” on both sides of the label field. Connect the joint in both the Conn A and Conn B fields to ballPhysics. Make sure both these fields are populated or the ball will crash MMD when it is loaded!

With the ball bone selected (which should be automatic if you properly assigned the ballPhysics to the ball bone in the steps above) click on the “?bone position” button. The Y location value should change to “1”. This locates the joint properly to the bone.

Since this is a rigid joint, we don’t have to do anything else in this tab.

pmd-ball_joint

Now go back to the PMDView window and with the proper view options selected you should see something exactly like this:

pmd-the_finished_ball

Ok let’s make the ball a little prettier!

Go to the materials tab and use the values as shown in the next screenshot to create a nice shiny pink ball. We won’t go too much into materials specifications in this article as the subject is covered in other articles here on LearnMMD.

pmd-ball_material

To finish the ball, goto the Information tab and label it “pinkBall” or whatever name you want to call your ball. As before, populate both the Japanese and English side of this field.

SAVE as a PMX model…

Now save the ball model – we’re saving ours as “pinkBall.pmx”.

pmd-ball_info

So let’s test out our new physics equipped pink ball in MMD!

Testing out our dynamic ball model in MMD

So load the ball into MMD and… nothing happens! Even if you select the center bone the ball doesn’t move… what gives you might ask?

mmd_ball_loaded

Well, if you were awake during physics class you might have a clue as to what’s going on. The ball has a mass but there is no force exerted on this mass so it will naturally remain inert. So it won’t move. But what’s the point of that you might ask and so


ADVERTISEMENT


let’s exert some force on the ball and see it move. The easiest way to do this in MMD is to goto MMD’s physics controls and go to the gravity settings function. Check off add noise and register. The ball should immediately start moving in a random direction.

mmd_ball_w_noize

Basically, the add noise function is used to simulate wind and our ball is relatively light so it’s getting blown about by a gentle breeze. Anyway for now turn off noise in the gravity control for the rest of this article as it will only make things more complicated to understand.

The pinkBall is not a “normal” model…

When you load pinkBall.pmx, you will find that you cannot “do” anything with it; you cannot move it even with its center bone. The reason why you cannot pick up the ball with the center bone is because it is not weighted to it plus the fact that the ball bone to which the ball is weighted is under the control of MMD’s physics engine. Bones under the physics engine’s control cannot be user selected normally which is why they are normally hidden from the user in the MMD display.

(The ball’s center bone CAN be moved. It’s just that the ball won’t move with it when physics is ON. However, when physics is OFF or switched off on the “ball” bone, you can actually move the whole construction with the center bone.)

But what’s the good of a ball that you can’t even control?

Actually, the ball can be totally controlled by a vocaloid! In actual fact the vocaloid can not only pick up the ball, but drop it. And if they can drop it, that means they can throw the ball and in a scientifically accurate manner if you program her correctly.

CLICK to learn how to make IA throw the ball... how to play games within MMD!

… but THAT’s another subject!

I have written another tutorial detailing the physics of the ball as you use it to play games within MMD! I will show you how to make a model pick up and THROW the ball!

Have fun with your Bouncing Ball!


– SEE BELOW for MORE MMD TUTORIALS…


— — —


– _ — –


Visit the LearnMMD.com Homepage! Plenty of Mikumikudance instruction and info!

More MMD Tutorials...

Download MMD CyberMiku Black ver1.5 with Glowing Wings and an attitude!

Download MMD CyberMiku Black ver1.5 with Glowing Wings and an attitude to match! A treasure... Yesterday I ...read more

Create your Most Attractive YouTube Thumbnail image

Is a custom YouTube thumbnail important? How do I get my MMD video to be ...read more

Download the beautiful LUKA MEGURINE HIPSTERBLACK by PS-2002

Where can I download LUKA MEGURINE HIPSTERBLACK by PS-2002? How can I get a new ...read more

Use YouTube Video Analytics Attract Maintain Viewers

How can I use YouTube Video Analytics to learn how to make popular MMD videos? ...read more

Add MME Lighting Effect illuminates model against dark stages

How can I add an MME lighting effect to my MMD animation? How can I ...read more

Create 450-Frame MMD animation from scratch!

How do I create a 450-Frame MMD animation from scratch? How do I start making ...read more

Making Models, MMD Tutorials, Physics Engine, PMDE/PMXE tutorials, Trackdancer2015

Post navigation

Previous Post: Most important MikuMikuDance instruction: Track your sources!
Next Post: Zazi’s Guide To Atmosphere in an MMD animation

Related Posts

  • Adding Sound Effects to existing MMD animations Making Soundtracks
  • Get the K-Lite Codec for MMD
    The K-Lite Codec Pack: How To Install, and Current Problems K Lite Mega Codec Pack 995
  • Reduce MMD video file size by using HandBrake.
    Reduce MMD Video File Size using FREE HandBrake video converter HandBrake video conversion
  • Play games within MMD using MMD as a Game Engine! Creating Motions
  • MME FireLight Effect adds spooky dancing firelight and shadows FireLight effect
  • Quick-Start Basics of MMD to get you started! GloriaTheAnimator

More Related Articles

Rotate stage to allow ground shadows MMD MikuMikuDance Accessory Manipulation/Adjust
Free AVIUTL Video Editing software adds animated titles to MMD Videos! Animated Titles
RAY-MMD: Haku’s crazy light show [PART 1] MME Effects Tutorials
Click to see the new Getting Started with MMD Video on YouTube! Getting Started with MMD Video on YouTube! MMD Basics
Optimise computer assets by culling unseen MMD model parts Chestnutscoop
New LearnMMD Stage Instructions just posted! MMD Tutorials

Comments (2) on “Create Bouncing Ball using MMD Physics Engine”

  1. MMDAlyCat says:
    April 26, 2018 at 7:47 pm

    I followed the instructions correctly but when I load the model in MMD my ball is invisible! Maybe it’s because I used PMXEditor?

    Reply
    1. KillerBeer says:
      April 27, 2018 at 2:00 am

      First of all, is it really invisible, or falling offscreen before you notice it? Turn off physics, load the model again and see if its there.

      Second, is it really invisible, or maybe it’s just white on white backgound and thus inconspicuous? Load a stage and check again.

      If nothing else works, upload it somewhere, some of us could take a look.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

SEARCH LearnMMD.com
Click the Magnifying Glass at the top of the page to SEARCH LearnMMD.com
- Download the latest version of MMD MikuMikuDance!Step-by-step instructions to help you make an MMD Music Video! bo-beep-bo-beep! LearnMMD's Step-by-Step MMD instructions for MikuMikuDance! Learn to make your own motions in MMD!

Have fun with MikuMikuDance!

  • MMD has an EXPAND function that lets you adjust a motion's speed.
    EXPAND function modifies MMD motion tempo EXPAND a motion
  • Downloading MMD 9.32 is Quick and Easy! Download MikuMikuDance 9.32 Download MikuMikuDance
  • Physical Operations Tab in MikuMikuDance 7.39 Menu Options MENU Option Descriptions
  • The MME files just need to be in the same folder as your MikuMikuDance.exe file. Download MMEffects v028 from LearnMMD.com and enjoy!
    Download MMEffects v037 on LearnMMD’s Downloads Page! MME Download MME MikuMikuEffects
  • Make MMD Model Hands from scratch in Blender Blender
  • Easily Make Realistic Hair Texture for MMD Models Mae Blythe
  • Ray-MMD LED widget replaces MMD screen capture widget Add Background Pictures and AVI
  • 3D For Cheapskates: Making stereo MMD videos without special equipment 3D Stereo Video MMD
See LearnMMD's write-up on how to be a GOOD MMDer... Keep the Faith-MMD!!
Keep the Faith-MMD... Learn how to be a GOOD MMDer!

Find out about writing for LearnMMD!

Copyright © 2022 Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software and Instructions..

Powered by PressBook Premium theme

Go to mobile version