jak-project/goal_src/jak2/engine/collide/collide.gc
Tyler Wilding 5095b867b0
d/jak2: finish jetboard training mission (mostly) and scouts mission (#2090)
The things that aren't working right now:
- returning the board (maybe cutscene related?)
  - draft until i see if this can be sorted out
- seems to need streaming audio as well, the `scene-player` gets
properly initialized from what i can tell
- had to hack around the streaming audio parts.
2023-01-04 20:43:34 -05:00

47 lines
1.4 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))
)
(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)
)
)
;; 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
)
)