WorldObjectSettings
class WorldObjectSettings : Component()on_object_option(Assets.WorldObject.poordoor, "Turn") { player -> val settings = target.getComponent<WorldObjectSettings>() settings.rotation = (settings.rotation + 1) % 4}rotation
Section titled “rotation”var rotation: Intvar shape: WorldObjectShapeonComponentAddedToEntity
Section titled “onComponentAddedToEntity”override fun onComponentAddedToEntity()