hi,everyone,here i'm working on a project that to break apart a wall.
first,i teared it apart about 500 parts in maya,and then import the sd file into the rf and make them into rbd. the rf4 assigns each of the parts different mass randomly,but the value of mass are quite different,eg: some for 0.1 and the other for 100.
here is the question how could i make the mass not so big different? eg: one is 5, and the second is 7,and the third is 10 etc.
help apprecitated!!!!!!
mass of the rigidbody
mass of the rigidbody
for eg. rand() 

"Do not feed the trolls"
Albert 'tmdag' Szostkiewicz
FX Technical Director
Weta Digital
Albert 'tmdag' Szostkiewicz
FX Technical Director
Weta Digital
-
- Posts: 2880
- Joined: Mon Oct 15, 2007 4:09 pm
- Contact:
mass of the rigidbody
There are a few different types of random number generators in Python. The one you probably want is this one.
There might be typos, didn't test it in anything but you get the idea. Look at the documentation for the random module on the Python site for the whole story. Cheers!
Code: Select all
import random
lowNumber = 5
highNumber = 10
randomNumber = random.uniform(lowNumber, highNumber)
WhenPicsFly | Debian GNU/Linux
-
- Posts: 2880
- Joined: Mon Oct 15, 2007 4:09 pm
- Contact:
mass of the rigidbody
I read your post a second time. RealFlow assigns mass based on the volume of the bounding box for each piece. So if their mass is really small its probably a really small piece. Maybe that helps more? Cheers!
WhenPicsFly | Debian GNU/Linux
-
- Posts: 7
- Joined: Sun Dec 30, 2007 6:32 am
mass of the rigidbody
thanks all of u guys, i have another try!!!!!:D:D