Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Objective Your primary objective is to implement and test the dynamic movement update and three dynamic movement behaviors, Seek, Flee, and Arrive. Your secondary (
Objective Your primary objective is to implement and test the dynamic movement update and three dynamic movement behaviors, Seek, Flee, and Arrive. Your secondary optional objective is to learn how to plot your movement trajectories.Objectivesteering behavior code Continue, Seek, Flee, Arrive
collision status TRUE if collided, FALSE if not collided; always FALSE for Program
Run your program for simulated seconds with a timestep duration of using NewtonEuler
integration, ie timesteps after initialization. Your scenario should have four characters with
the initial conditions in the following table. The movement target of the Flee, Seek, and Arrive
characters is the Continue character.
Your primary objective is to implement and test the dynamic movement update and three dynamic
movement behaviors, Seek, Flee, and Arrive. Your secondary optional objective is to learn how to
plot your movement trajectories.
Requirements
Implement the dynamic version of the NewtonEuler movement update algorithm and the dynamic
Seek, Flee, and Arrive movement behaviors. ff Also implement a Continue movement behavior, which does not alter a
character's movement at all, but simply uses the initial values. The Continue behavior is not in the
textbook, but it is in the implementation. For this assignment, the Continue character's initial
velocity and rotation will all be so the Continue character should not move at all.
Your program should output each character's trajectory as a text file txt The output file should
have one record per character per timestep, including a record for the initial conditions time
For example, for a scenario with characters that runs for timesteps, there should records in
the output file, in the following order. This list shows proper order, but not proper format for the
output file.
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
character timestep
Each record should have the following fields, in the order listed, and separated by commas:
simulation time
character id numeric
position meters
position meters
velocity meters per second
velocity meters per second
linear acceleration meters per second per second
linear acceleration meters per second per second
orientation radianssteering behavior code Continue, Seek, Flee, Arrive
collision status TRUE if collided, FALSE if not collided; always FALSE for Program
Run your program for simulated seconds with a timestep duration of using NewtonEuler
integration, ie timesteps after initialization. Your scenario should have four characters with
the initial conditions in the following table. The movement target of the Flee, Seek, and Arrive
characters is the Continue character.Replicate, as closely as possible, the character movement trajectories shown in the preceding image.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started