NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
September 03, 2014, 11:31:56 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Choose a job you love, and you will not have to work for a day in your life." ...Confucius (551-479 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: how to move particles along a path  (Read 5323 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fred Chuit
Newbie
*
Offline Offline

Posts: 18



«
Embed this message
on: December 30, 2008, 02:59:18 pm » posted from:Meppel,Drenthe,Netherlands

Dear EJS-users,

I am looking for a way to move a large number of particles (circles) along paths, like a chain.
If possible the particles should change colour depending on their position.
Is there a nice way in EJS to do this or do I have to work particle by particle?

Please, look at the drawing to get an idea what I mean.
Already many thanks for any help.
Regards,
Fred


* deeltjes.png (29.83 KB, 574x326 - viewed 85 times.)
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3054



WWW
«
Embed this message
Reply #1 on: December 30, 2008, 04:20:02 pm » posted from:Taipei,T'ai-pei,Taiwan

Please check out the following applets:

    
RC circuit (DC: charge/discharge)
RLC AC circuit
or
    
Rectifier circuit

For color to change according to their position, you need to define an array  for color object, and set their value from coordinate.
Logged
Pages: [1]   Go Up
  Print  
"Choose a job you love, and you will not have to work for a day in your life." ...Confucius (551-479 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
A bead attached to a spring and confined to move along a wire
Dynamics
Fu-Kwun Hwang 0 7677 Last post February 25, 2007, 02:19:36 pm
by Fu-Kwun Hwang
Ball move on top of a curved surface z=a(x^2+y^2)
Dynamics
Fu-Kwun Hwang 0 7223 Last post November 03, 2007, 05:27:37 pm
by Fu-Kwun Hwang
A bead attached to a spring and confined to move along a wire
dynamics
ahmedelshfie 0 2401 Last post May 27, 2010, 12:29:46 am
by ahmedelshfie
Ball move on top of a curved surface z=a(x^2+y^2)
dynamics
ahmedelshfie 0 1913 Last post June 08, 2010, 08:16:16 pm
by ahmedelshfie
how do you move an object at constant velocity?
Physics Questions
leeyiren 8 9351 Last post September 29, 2010, 04:01:50 pm
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.556 seconds with 22 queries.since 2011/06/15