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

2014/2/26

Is this called raycasting?

Lethal_Vitamin Lethal_Vitamin

2014/2/26

#
My Scenario I'm making a zombie defense game (so original, I know :-)). I want to be able to do this thing that I think is called raycasting (?). What I want to do is have a ray come out of a player towards the mouse and have the method return whatever the ray intersects. Anybody have any idea how to do this or links to good tutorials? Pic of What I want to do
JetLennit JetLennit

2014/2/26

#
So basically, like a radar, but in a certain section?
danpost danpost

2014/2/26

#
Is this to happen instantaneously or over a short amount of time? and do you want the ray to report the first object encountered only?
lordhershey lordhershey

2014/2/26

#
Check out SPower's Ray Casting Engine I may be just what you need.
JetLennit JetLennit

2014/2/27

#
@lordhershey, I don't think he really wanted raycasting. But in fact he seems to want to get the zombies within a certain area
danpost danpost

2014/2/27

#
@JetLennit, it is hard to say. However, my belief is that he want to get the first zombie along a specific line of sight.
Lethal_Vitamin Lethal_Vitamin

2014/2/27

#
This was one of my favorite games when I was little. It does what I want to do. Endless Zombie Rampage
You need to login to post a reply.