Page 1 of 1

Adding vectors / velocities to objects

Posted: Fri Dec 16, 2011 10:54 pm
by hardin@cdgengineers.com
I've figured out how to create objects in a scene and make them Active rigid bodies.
(I've been using RealFlow for years, but I'm new to scripting.)
Now, how do I (or can I) add a velocity and vector to my rigid body objects?
Realflow 2012 manual, page 318 indicates setVelocity cannot be applied to Objects.
Is there another way to set my newly created rigid body objects in motion?
I am basically trying to create an emitter of rigid body objects to simulate coal flying off the end of a conveyor belt and travel down chutework onto antoher conveyor.
Or, is there a better way? A basic emitter just doesn't do it because it behaves like water.

Re: Adding vectors / velocities to objects

Posted: Sat Dec 17, 2011 2:46 am
by Alex
Hi,

you can specify the initial velocity of the rigid bodies by modifying the parameter "@ Velocity".

For example:

Code: Select all

Cube01.setParameter( "@ Velocity", Vector.new( 0.0, 1.0, 0.0 ) )
On the other hand, if you set the particle type to Dumb, their behaviour will be more force driven instead of looking like liquid.

Re: Adding vectors / velocities to objects

Posted: Mon Dec 19, 2011 5:00 pm
by hardin@cdgengineers.com
Wonderful! That's doing it. I'm rather giddy now....
Now I need to figure out how to make a group of these each frame of a simulation.
I'm assuming that is possible. I love a challenge.
The emitter dumb particles won't work because I really need to show volume and the affects of particle vs particle (or chunk of coal vs chunk of coal) in the simulation. The chute will need to plug up with coal if that's what's going to happen in real life.
Thanks, much!
Lyle.