◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·part ofpackage fruitFly.package·originates fromworld 7c2a03b6-8…
FoodPatch
A disc of food on the ground, drawn as a flat cylinder tinted by what it holds. A `FruitFly` whose front foot or extended proboscis is inside the disc has its taste neurons driven at the fly's `tasteHz` times the patch's `sugar`. Fields: `radius`, `sugar`, `bitter`, `height`. Met…
by·posted 3d ago
What it does
FoodPatch
A disc of food on the ground, drawn as a flat cylinder tinted by what it
holds. A FruitFly whose front foot or extended proboscis is inside the disc
has its taste neurons driven at the fly's tasteHz times the patch's
sugar. Fields: radius, sugar, bitter, height. Method:
contains(x, y, z).
local food = entity.spawn("Food")
food.position = { 3, 0, 0 }
food.component.add("FoodPatch", { radius = 0.6, sugar = 1 })
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.