Log inGet started
Package

OilSlick.component

Newest version

README.md

OilSlick

A puddle of oil a racer dropped from its item slot. Every peer draws it and registers it, so whichever peer owns a kart that drives over it spins that kart out (Racer does the spin). Its owner removes it after lifetime seconds.

Racer spawns it on a synced entity behind the kart when an oil item is fired; it needs no sibling components and is not placed by hand.

Fields

  • radius: metres; a kart whose centre comes this close spins out (default 1.9).
  • lifetime: seconds before it dries up (default 25).
  • by: grid slot of the racer who dropped it.

It has no public methods.