Small man (Bill man) Personal Original, welcome to reprint, reprint please indicate the address, small man (Bill man) column address http://blog.csdn.net/bill_man
First, let's talk about the tumbler example. First, let's take a look at the running effect.
Drop some small blocks from one point down, and then the entire box is rotated.
The first step is to create an external box, set the type to dynamic type, allow sleep, set the position, and the last half is to set four edges for the object.
Set a rotating motor so that the object can be turned around a point. Set the maximum torque 1e8f to keep the motor at a stable speed. When the maximum torque is exceeded, the motor will slow down and stop.
Then, a small object is generated in each time step, which is generated at 0.0f and 10f and is a square.
If there are any errors, I hope you can correct them more.
The next article describes the tiles example.