Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Unity, implement a two-level finger-four formation with four characters (shown below) that uses the A* algorithm to find a path to the goal Finger

image text in transcribed
Using Unity, implement a two-level finger-four formation with four characters (shown below) that uses the A* algorithm to find a path to the goal Finger Four Formation The program should uv u wn."uauv.. vi the 2nd homework assignment with the addition pathfinding (using A*). Like before, when the user right-clicks on the plane, it should create a player-sized obstacle that characters cannot path through. When the user left-clicks on the plane, the formation should use the A* algorithm to move to the spot of the click. Individual characters should avoid the obstacles while always attempting to maintain their position in the formation (see two-level formations) 1. Your decomposition size will need to be at least as small as one of your characters 2. When the user clicks, perform A* once for the invisible leader, not for each member of the formation. The leader will obviously find an obstacle-free path to the goal, but the other three might encounter obstacles for which they will need to path around 3. As the leader is moving to the goal, the other locations in the formation will automatically update and the characters can seek() towards their updated formational locations -do not run A*for those characters 4. When a character encounters an obstacle (i.e., onCollisionEnter), use the same method you used in Homework #2 for pushing them around the obstacle Built-in graphics and game objects will suffice (although you must be able to tell the orientation of the character). Programs Using Unity, implement a two-level finger-four formation with four characters (shown below) that uses the A* algorithm to find a path to the goal Finger Four Formation The program should uv u wn."uauv.. vi the 2nd homework assignment with the addition pathfinding (using A*). Like before, when the user right-clicks on the plane, it should create a player-sized obstacle that characters cannot path through. When the user left-clicks on the plane, the formation should use the A* algorithm to move to the spot of the click. Individual characters should avoid the obstacles while always attempting to maintain their position in the formation (see two-level formations) 1. Your decomposition size will need to be at least as small as one of your characters 2. When the user clicks, perform A* once for the invisible leader, not for each member of the formation. The leader will obviously find an obstacle-free path to the goal, but the other three might encounter obstacles for which they will need to path around 3. As the leader is moving to the goal, the other locations in the formation will automatically update and the characters can seek() towards their updated formational locations -do not run A*for those characters 4. When a character encounters an obstacle (i.e., onCollisionEnter), use the same method you used in Homework #2 for pushing them around the obstacle Built-in graphics and game objects will suffice (although you must be able to tell the orientation of the character). Programs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions