Currently, I can move by using .SetVelocity() as following:
MobilityHelper mobility;
mobility.SetMobilityModel ("ns3::ConstantVelocityMobilityModel");
mobility.Install (staContainer);
Ptr<ConstantVelocityMobilityModel> mob = staContainer.Get(0)->GetObject<ConstantVelocityMobilityModel>();
mob->SetVelocity(Vector(20, 0, 0)); //go to the right
- But there is no boundary so I have to manage the time and velocity so that it won't move outside my "imaginary" boundary. Is there other way?
- Is there a way to define a box, place a node at a position within this box, move the node to another position within a box?