Rigid bodies infinite creation problem

   3027   2   0
User Avatar
Member
3 posts
Joined: April 2013
Offline
Hello again everyone, can you help me with something here? I imported an object and set it to be a rigid body. Since what i wanted was a rain of intances of the same object i set the creation frame to this expression

if ($F%10==0, $FF, 0)

In order to instantiate them in random positions i set both X and Z initial values for this

fit01(rand($OBJ),-1,1)*20

now my problem is that, when i run the simulation they're not being randomly distributed around as i expected instead they are, yes falling in random X,Z positions but in a diagonal to the grid…

What am i missing here? Can you help me please? Thank you all…
Cheers!!!

Attachments:
houdini problem.png (219.0 KB)

User Avatar
Member
607 posts
Joined: May 2007
Offline
You are entering the same seed to both your rand() functions. Change the seed to eg. $OBJ*7.7 on the Z axis, that should help.
User Avatar
Member
50 posts
Joined: March 2011
Offline
Quick and efficient. Thank you very much. I understand what i was doing wrong now, it makes sense… Thank you so much…
  • Quick Links