Re: FRESH project - Supervisor Dr. A. Helmy
hemen vimadalal <[email protected]> Mon, 19 Apr 2004 22:16:09 -0700
| Newsgroups | gmane.network.simulator.epfl |
|---|---|
| Message-ID | <[email protected]> |
Dear Henri,
Thank you for the prompt reply earlier.
Ok right now i am facing a small problem with billiards model when i am increasing the speed . The direction does not get changed if the speed is increased.
line:::::125
method private new_direction = (
(* let rad = (Random.float rnd (2. *. pi)) -. pi in
polar 1.0 rad;*)
if (Random.int rnd 2 = 0) then (
let rad = pi in polar 1.0 rad)
else (
let rad = pi/. 2. in polar 1.0 rad )
)
I just want the nodes to move N S E W and refelect back but when i am implementing this nodes move N-S for a vey long time and donot change direction. Also how can i restrict the nodes to a grid like structure like you have done in EPFL ..could you provide me with some pointers to this.
Thanking you and awaiting your response.
Sincerely,
HEMEN R.VIMADALAL
B.S. ELECTRONICS ENGINEERING(Mumbai University)
M.S. ELECTRICAL ENGINEERING(U S C)
Phone # (323)620 6279