Log inGet started
Package

courseToys.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

courseToys_parent

Checks how Toys.spawn and Toys.populate read pos and yaw when a parent is given (fixed in 1.1.1).

  • world slots with a parent land on their slots: populates a chunk 400 m down a course (the root sits at the chunk's first slot, like an endlessStairs chunk root) with parent = root, with the root unrotated and turned 35 degrees. Every toy must be within slot.width/2 + 1 m of a slot. In 1.1.0 the toys landed at root + slot, hundreds of metres off.
  • spawn converts pos and yaw into the parent's space: a world pos/yaw under a turned parent stays where it was asked to be, and localPos = true reads pos/yaw in the parent's space.
  • stats expose handlers and handlerHits: Toys.stats() reports how many toy colliders are listened for and how many contacts found one.

It leaves the kinds' behaviour on contact (bounces, breaks, pickups) to the gallery and the kit's guides. Run it with asset.resolve("courseToys_parent", "testSuite"):run() in edit mode.