Hello everyone! We are indie game devs working on our RTS game, "WarZone Flashpoint". If you feel RTS has been dragging its feet lately in the multiplayer scene, this game is for you! Stay tuned to get close preview and participate in the community discussions. Dust Storm Entertainment™

Post news Report RSS Dev Blog Ray Cast Attacks

Ray Cast Attacks and Line of Sight... Ray casts are a kind of programming technique where an invisible line is

Posted by on

Ray Cast Attacks and Line of Sight

Ray casts are a kind of programming technique where an invisible line is emitted to detect something, kind of like a laser pointer. This is the basis of how a lot of our attacks will work. Anything that shoots a bullet (like a rifle infantry) or a shell (like a tank) for example, will be using a ray cast. Second, is a line of sight. Most units which fire their ballistics in a straight line must have a line of sight to fire. Structures and environmental objects can block line of sight and prevent fire. However, vehicles and infantry cannot block line of sight.

Join us in Discord

1 A9FdpItfh7lP0R1Q3yDQvA


Capture01

These two systems together have two implications for gameplay that should be considered. The first is that some attacks will have no travel time due to the nature of a ray cast. This does not apply to rockets, dropped bombs, missiles, or other attacks with a travel time. Next, certain objects (namely, vehicles from an opponent) can block your attacks. This is not the same thing as lacking line of sight as a unit attempting to engage a target behind an enemy vehicle will ‘see’ it but its attacks will likely strike the closer target instead of the desired target. In short, formations matter, positions matter, and you should deploy your units accordingly.

Capture02

Comments
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
WarZone Flashpoint
Platforms
Windows, Mac, Linux
Creator
Dust-Storm
Engine
Unity
Contact
Send Message
Homepage
Dust-storm.com
Release date
Game watch
Follow
News
Tags
Dev blog
Browse
News
New
Post news
Report
Report
Share
Related Games
WarZone Flashpoint
WarZone Flashpoint Real Time Strategy
Related Engines
Unity
Unity Commercial
Related Groups
Indie Gamers
Indie Gamers Hobbies & Interests with 1,486 members
Linux Gamers
Linux Gamers Fans & Clans with 2,972 members
RTS Fans
RTS Fans Fans & Clans with 189 members