NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
December 23, 2014, 02:45:19 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  
Teaching without words. ...Lao Tzu (570-490 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 5484 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 109 times.)
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3058



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  
Teaching without words. ...Lao Tzu (570-490 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 8328 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 7348 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 2591 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 1998 Last post June 08, 2010, 08:16:16 pm
by ahmedelshfie
how do you move an object at constant velocity?
Physics Questions
leeyiren 8 11871 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.053 seconds with 22 queries.since 2011/06/15