Thrust

From ZDoom Wiki
Jump to navigation Jump to search

Actor

native void Thrust(double speed = 1e37, double angle = 1e37)

Usage

Adds to the actor's XY velocity based on the provided speed and angle.

If there's a need to set velocity without saving the current one, see VelFromAngle.

Parameters

  • double speed
The speed value to be added to the actor's current velocity. Default is 1e37 which tells GZDoom to use the Actor's Speed property.
  • double angle
The direction of the added velocity. Default is 1e37 which tells GZDoom to use the Actor's current angle.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.


See also