User Tools

Site Tools


4rpl:commands:ballisticarcpos

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:ballisticarcpos [2021/01/08 16:01] – external edit 127.0.0.14rpl:commands:ballisticarcpos [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-<=[[4rpl:start| Index]]+<=[[4rpl:start| Index]] \\ 
 +<=[[4rpl:start#math_utility| Math Utility]] 
  
 ====== BallisticArcPos ====== ====== BallisticArcPos ======
Line 7: Line 9:
 ===== Description ===== ===== Description =====
  Calculates the position of a projectile after a period of time factoring in start position, velocity, and gravity.  Calculates the position of a projectile after a period of time factoring in start position, velocity, and gravity.
- Useful to use in conjunction with the BallisticArcLateral function.+ Useful to use in conjunction with the [[4rpl:commands:ballisticarclateral|BallisticArcLateral]] function.
  This function uses the equation:  start + time*velocity - [0, 0.5*gravity*time*time, 0]  This function uses the equation:  start + time*velocity - [0, 0.5*gravity*time*time, 0]
  
- - start: Vector location that projectile will fire from. + - start: Vector location that projectile will fire from.\\ 
- - velocity: The vector velocity (x,y,z) of the projectile. + - velocity: The vector velocity (x,y,z) of the projectile.\\ 
- - gravity: the acceleration due to gravity (in the y direction)+ - gravity: the acceleration due to gravity (in the y direction)\\
  - time: The elapsed time.  - time: The elapsed time.
  
4rpl/commands/ballisticarcpos.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)