This site requires JavaScript, please enable it in your browser!
Greenfoot back
Roshan123
Roshan123 wrote ...

2021/5/18

Ray casting

1
2
3
danpost danpost

2021/5/27

#
Roshan123 wrote...
open blue bot...scroll down and read the 1st most commentt
Okay, that commented code does not work.
Roshan123 Roshan123

2021/5/30

#
Will u plz give me some explanations on ray class
danpost danpost

2021/5/30

#
Roshan123 wrote...
Will u plz give me some explanations on ray class
ay and by are not being given correct values.
Roshan123 Roshan123

2021/5/30

#
In last line why u wrote .size()<=2 I would have written .size()>0 I can't understand the logic between this 2. Plz explain it also
danpost danpost

2021/5/30

#
To be unobstructed, the ray is limited to only touch the two actors. It definitely must be less than or equal to two to be truthfully unobstructed. Whether the value used is two or zero is determined by the types of the two actors. If they are of "intersecting" type checked for, use 2. If only one of the two actors is of that type, use 1. If neither is on that type, use 0.
You need to login to post a reply.
1
2
3