[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] z-co-ordinate
Dear fellow ns-users,
Why is the z-coordinate always 0.0?
I add in some code to mobilenode::distance() to display the value of x,y,z.
Then, I set $node_(1) set Z_ 100 in the tcl script
Then, I set Z_ = 200; in the mobilenode constrctor.
After compile and run, the display code in mobilenode::distance() display
"Z = 0.0"
Is there anywhere else in the ns2 where z-coordinate is being set to 0.0?
Pls help!
Thanks,
Terence