use inline and TYPED: in terrain so that vector math can optimize
parent
ce11431fdb
commit
72013c88c9
|
@ -178,9 +178,9 @@ terrain-world H{
|
||||||
[
|
[
|
||||||
{ 0 2 3 3 } vshuffle terrain-height-at PLAYER-HEIGHT +
|
{ 0 2 3 3 } vshuffle terrain-height-at PLAYER-HEIGHT +
|
||||||
-1/0. swap -1/0. -1/0. float-4-boa
|
-1/0. swap -1/0. -1/0. float-4-boa
|
||||||
] keep vmax ;
|
] keep vmax ; inline
|
||||||
|
|
||||||
:: collide ( world player -- )
|
TYPED:: collide ( world: terrain-world player: player -- )
|
||||||
world terrain-segment>> :> segment
|
world terrain-segment>> :> segment
|
||||||
player location>> :> location
|
player location>> :> location
|
||||||
segment location (collide) :> location'
|
segment location (collide) :> location'
|
||||||
|
|
Loading…
Reference in New Issue