Adding vectors / velocities to objects

Post Reply
hardin@cdgengineers.com
Posts: 4
Joined: Mon Dec 12, 2011 5:32 pm
Location: St. Louis, Missouri

Adding vectors / velocities to objects

Post by hardin@cdgengineers.com » Fri Dec 16, 2011 10:54 pm

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.
Lyle

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

Re: Adding vectors / velocities to objects

Post by Alex » Sat Dec 17, 2011 2:46 am

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.
Alex Ribao
RealFlow Team
Next Limit Technologies

hardin@cdgengineers.com
Posts: 4
Joined: Mon Dec 12, 2011 5:32 pm
Location: St. Louis, Missouri

Re: Adding vectors / velocities to objects

Post by hardin@cdgengineers.com » Mon Dec 19, 2011 5:00 pm

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.
Lyle

Post Reply