Question 37 (i) - Practice Questions CBSE - Maths Class 10 (2023 Boards) - Solutions of Sample Papers for Class 10 Boards
Last updated at April 16, 2024 by Teachoo
Raycasting is a technique used in the creation of computer games. The basic idea of raycasting is as follows: the map is a 2D square grid. Using rays generated from an object, this 2D map can be transformed into a 3D perspective. One of the methods involves sending out a ray from the player's location. To determine how far he/she is from a wall or an obstacle, the distance between the player's coordinates and the coordinate of the wall is calculated. If the player is near the obstacle, it looks larger and vice-versa.
Shown below is a game, Wolf 3D, which was created using raycasting.
Riju wants to create an online snooker game using raycasting. The game in the creation stage on a coordinate map is shown below.
The snooker table has six pockets (P1, P2, P3, P4, P5 and P6) and he has shown three balls - white (W), red (R) and green (G) on the table. The objective of the game is to use the white ball to hit the coloured balls into the pockets using a cue stick.
Question 37 (
i
)
How much distance will a ray travel if sent from the green ball to the nearest pocket? Show your work.
Raycasting is a technique used in the creation of computer games. The basic idea of raycasting is as follows: the map is a 2D square grid. Using rays generated from an object, this 2D map can be transformed into a 3D perspective. One of the methods involves sending out a ray from the player's location. To determine how far he/she is from a wall or an obstacle, the distance between the player's coordinates and the coordinate of the wall is calculated. If the player is near the obstacle, it looks larger and vice-versa.
Shown below is a game, Wolf 3D, which was created using raycasting.
Riju wants to create an online snooker game using raycasting. The game in the creation stage on a coordinate map is shown below.
The snooker table has six pockets (P1, P2, P3, P4, P5 and P6) and he has shown three balls - white (W), red (R) and green (G) on the table. The objective of the game is to use the white ball to hit the coloured balls into the pockets using a cue stick.
Question 37 (i)
How much distance will a ray travel if sent from the green ball to the nearest pocket? Show your work.
Made by
Davneet Singh
Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo
Hi, it looks like you're using AdBlock :(
Displaying ads are our only source of revenue. To help Teachoo create more content, and view the ad-free version of Teachooo... please purchase Teachoo Black subscription.
Please login to view more pages. It's free :)
Teachoo gives you a better experience when you're logged in. Please login :)
Solve all your doubts with Teachoo Black!
Teachoo answers all your questions if you are a Black user!