User Tools

Site Tools


xg:sector_wind

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
xg:sector_wind [2017-03-17 08:02] skyjakexg:sector_wind [2018-10-20 07:52] (current) skyjake
Line 1: Line 1:
 +====== Sector wind ======
 +
 +
 +//Wind// increases the momentum of [[thing]]s inside a [[sector]]. Wind speed is defined as the increase in momentum per [[game_tic]]. There are two kinds of wind: horizontal and vertical. Horizontal wind pushes things on the [[xy_plane]] to a given direction specified with an angle. Vertical wind affects Z momentum. Standard [[doom]] gravity corresponds a vertical wind of –1. Wind can be configured to only affect certain types of map objects.
 +
 +If you want to synchronize wind speed with a [[scrolling_texture]] (for instance to create the illusion that a [[scrolling_floor]] is moving the player around), use the following equation (//f// is the sector friction).
 +
 + W<sub>spd</sub> = T<sub>spd</sub> (1 − f)
 +
 +
 +===== Angle direction =====
 +
 +
 +These are the general directions which can be used with Wind Angle. Keep in mind these are just the horizontal and vertical angles, any angles between these may be used also.
 +
 +  *  0 = East
 +  *  90 = North
 +  *  180 = West
 +  *  270 = South
 +
 +
 +===== Example =====
 +
 +
 +<code>
 +Sector Type {
 +    ID = 5007
 +    Comment = "Change wind to push North"
 +    Flags = stf_windany
 +    Wind Angle = 90.0
 +    Wind Speed = 2.0
 +    Vertical Wind Speed = 0.0
 +}
 +</code>
 +This will create wind which will push all mobjs (stf_windany) in the North direction (Wind Angle) at a speed of 2 (Wind Speed)
 +
 +
 +===== See also =====
 +
 +  *  [[ded:Sector Type]] definition
 +
 +