;;-*-Lisp-*- (in-package goal) ;; name: trajectory-h.gc ;; name in dgo: trajectory-h ;; dgos: GAME, ENGINE ;; Trajectory represents a ballistic trajectory. ;; First, call one of the setup methods to setup the trajectory object. ;; Then, use eval-position or eval-velocity to get the position or velocity of the ;; object along the trajectory. (deftype trajectory (structure) ((initial-position vector :inline :offset-assert 0) (initial-velocity vector :inline :offset-assert 16) (time float :offset-assert 32) (gravity meters :offset-assert 36) ) :method-count-assert 16 :size-assert #x28 :flag-assert #x1000000028 (:methods (eval-position! (_type_ float vector) vector 9) (eval-velocity! (_type_ float vector) vector 10) (setup-from-to-duration! (_type_ vector vector float float) none 11) (setup-from-to-xz-vel! (_type_ vector vector float float) none 12) (setup-from-to-y-vel! (_type_ vector vector float float) none 13) (setup-from-to-height! (_type_ vector vector float float) none 14) (debug-draw! (_type_) none 15) ) )