2022-06-30 01:22:51 -04:00
|
|
|
;;-*-Lisp-*-
|
|
|
|
(in-package goal)
|
|
|
|
|
|
|
|
;; name: collide.gc
|
|
|
|
;; name in dgo: collide
|
|
|
|
;; dgos: ENGINE, GAME
|
|
|
|
|
2023-02-27 18:58:01 -05:00
|
|
|
#|@file
|
|
|
|
this is some vif setup stuff that was in jak 1 as well - some code in collide-cache
|
|
|
|
uses VIF's unpack/upload to modify collision data. This gets ported to c++, just
|
|
|
|
keeping it here for reference.
|
|
|
|
|#
|
|
|
|
|
2022-10-29 15:22:57 -04:00
|
|
|
(deftype collide-query-with-vec (structure)
|
|
|
|
"A custom type added because of weirdness discovered in task-arrow::23"
|
|
|
|
((cquery collide-query :inline)
|
|
|
|
(vec vector :inline))
|
|
|
|
)
|
|
|
|
|
2023-01-04 20:43:34 -05:00
|
|
|
(deftype collide-query-with-2vec (structure)
|
|
|
|
"A custom type added because of weirdness discovered in krew-collection-item::22"
|
|
|
|
((cquery collide-query :inline)
|
|
|
|
(vec vector :inline)
|
|
|
|
(vec2 vector :inline)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-08-05 16:12:54 -04:00
|
|
|
;; DECOMP BEGINS
|
|
|
|
|
2022-11-11 12:01:45 -05:00
|
|
|
(define *collide-vif0-init* (new 'static 'boxed-array :type uint32
|
|
|
|
#x30000000 ;; strow
|
|
|
|
#x4d000000 ;; row x
|
|
|
|
#x4d000000 ;; row y
|
|
|
|
#x4d000000 ;; row z
|
|
|
|
#x3f800000 ;; row w
|
|
|
|
#x5000001 ;; stmod 1
|
|
|
|
#x20000000 ;; stmask
|
|
|
|
#x40404040 ;; 1's on all w's
|
|
|
|
#x1000404 ;; stcycl cl 4 wl 4
|
|
|
|
#x0
|
|
|
|
#x0
|
|
|
|
#x0
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|