Files
jak-project/goal_src/jak2/engine/collide/collide.gc
T
water111 136136e498 [decomp] start work on collide (#2008)
Adds `collide-shape` and a few other related ones.
2022-11-11 12:01:45 -05:00

39 lines
1.2 KiB
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: collide.gc
;; name in dgo: collide
;; dgos: ENGINE, GAME
(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))
)
;; 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.
;; DECOMP BEGINS
(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
)
)