NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
August 29, 2014, 11:16:26 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Life well spent is long. ..."da Vinci (1452-1519, Italian artist, sculptor, painter, architect, engineer and scientist) "
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 5317 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 83 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  
Life well spent is long. ..."da Vinci (1452-1519, Italian artist, sculptor, painter, architect, engineer and scientist) "
 
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 7642 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 7220 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 2399 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 1903 Last post June 08, 2010, 08:16:16 pm
by ahmedelshfie
how do you move an object at constant velocity?
Physics Questions
leeyiren 8 9272 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.084 seconds with 22 queries.since 2011/06/15