Sita S. Krishnakumar wrote: > I am writing to see if anyone has successfully changed node positions > dynamically in code? Node locations can be set using setdest in tcl code, > but I am looking to do it in the ns-2 code in c/c++. > Please share your experiences.
I don't know how to do that but I'm sure you can figure it out by following OTcl code in <ns2>/tcl/lib . A good starting point is the ns-lib.tcl file. If you're having a hard time reading Tcl, you might wanna look for a Tcl tutorial first. It's also helpful to have a basic understand of how Tcl and C++ links together by reading chapter 3 (IIRC) of the ns2 manual. HTH, --Timo