Questions & AnswersComputer Science

Unreal 5 teleporter. Everything you need to fix the teleporter is...

Question
Answered step-by-step
Asked by AmbassadorFreedomMosquito25 on coursehero.com

Unreal 5 teleporter. Everything you need to fix the teleporter is...

Unreal 5 teleporter. Everything you need to fix the teleporter is in the BP_Teleporter Blueprint. There are 4 white comment blocks that are missing code and you need to fill it back in. 
The first block you need to fill in requires that you find an appropriate node to validate that the Other Teleporter has been hooked up properly.

 

 The second block you need to fill in requires that you find a way to ensure the Other Actor pin from the Overlap event is actually a BP_Bot. 

 

The third block requires that you call a function to find out whether the Bot is in front of or behind the teleporter. The teleporter is not supposed to work from the back side. You'll need to add a little bit more code, beyond the function call, to only proceed with the teleport if the Bot is not behind the teleporter. In order for the teleporter to work, it needs to know where to teleport the Bot to. 

 

The fourth block requires that you get that information from the other teleporter's World Location and World Rotation and pass it on to the Teleport node.

 

 Remember that function you called to figure out whether the Bot was in front of the teleporter or not? It's broken too. It has two blocks that need to be filled in. The first requires that you do some vector subtraction. You'll need to get the Actor Location of the Bot and of the teleporter. Then, you'll need to subtract the former from the latter. The second block in the function requires that you ask Unreal to calculate the dot product of two direction vectors and compare it to 0 to see if the angle between them is < 90°. Remember, a dot product of 0 means the angle is 90°. A dot product > 0 means it is < 90° and a dot product < 0 means the angle is > 90°.

Answer & Explanation

Solved by verified expert
Answered by sp7348188 on coursehero.com

sectetur adipiscing elit. Nam lacin

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur
CliffsNotes Logo

Unlock access to this and over
10,000 step-by-step explanations

Unlock Explanation

Have an account? Log In

<p>sectetur adipiscing elit. Nam lacin</p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur

Step-by-step explanation

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante

 

sectetur adipiscing elit. Nam lacinia pu

 

  • sectetur asectetur adipiscing elit. Nam lacinia pulvinar tortor n

 

  • sectetur ad
sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoree

 

sectetur adipiscing elit. Nam laci

 

  • sectetur asectetur adipiscing elit. Nam lacinia pulvinar tortor nec facili
  • sectetur ad
sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. F

 

sectetur adipiscing elit. Nam lacinia pulv

 

sectetur asectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellente

 

sectetur ad

 

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices

 

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec

 

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Do

 

sectetur adipiscing elit. Nam lacinia p

 

  • sectetur asectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellent

 

  • sectetur ad
sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit ame

 

sectetur adipiscing elit. Nam lacinia pulvinar tortosectetur adipissesectetur asesectetursectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus

 

 

 

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus

sectetur adi

Get unstuck with a CliffsNotes subscription

Example CliffsNotes Question and Answer
Unlock every step-by-step explanation, download literature note PDFs, plus more.Get Access

Related Q&A