2020-10-26 21:08:24 -04:00
|
|
|
;;-*-Lisp-*-
|
2020-09-04 14:44:23 -04:00
|
|
|
(in-package goal)
|
|
|
|
|
|
|
|
;; name: euler-h.gc
|
|
|
|
;; name in dgo: euler-h
|
|
|
|
;; dgos: GAME, ENGINE
|
|
|
|
|
2021-02-13 11:32:52 -05:00
|
|
|
;; maybe euler angle storage orders?
|
2021-06-07 20:22:06 -04:00
|
|
|
(define EulSafe (new 'static 'boxed-array :type int32 :length 4
|
|
|
|
0 1 2 0))
|
|
|
|
(define EulNext (new 'static 'boxed-array :type int32 :length 4
|
|
|
|
1 2 0 1))
|
2021-02-13 11:32:52 -05:00
|
|
|
|
|
|
|
;; just uses the same xyzw and data array as vector.
|
2021-04-11 16:07:01 -04:00
|
|
|
;; the w stores a float that should be an integer that seems to have
|
|
|
|
;; bitfields for... something? Like maybe the order?
|
2021-02-13 11:32:52 -05:00
|
|
|
(deftype euler-angles (vector)
|
|
|
|
()
|
|
|
|
:method-count-assert 9
|
|
|
|
:size-assert #x10
|
|
|
|
:flag-assert #x900000010
|
|
|
|
)
|