Skip to content

Bob

Bob rises an entity above where it rests and back down, once every seconds. It applies as a difference from its last offset, so it rides on whatever else moves the entity.

Its props are in BobProps.

Client. Bob only changes how the entity looks, so the server has no reason to track it.

import { Entity, Bob, type EntityProps } from "@daniel-zarinski/engine";
export function BobbingCoin({ position }: Pick<EntityProps, "position">) {
return (
<Entity model="coin" position={position}>
<Bob height={0.2} />
</Entity>
);
}