Beta
This component is added to any entity when it is riding another entity.
const getEntityRidingComponent = entity.getComponent("riding");getEntityRidingComponent.entityRidingOn;getEntityRidingComponent.isValid(); Copy
const getEntityRidingComponent = entity.getComponent("riding");getEntityRidingComponent.entityRidingOn;getEntityRidingComponent.isValid();
Readonly
The entity that owns this component.
The entity this entity is currently riding on.
This property can throw when used.
Identifier of the component.
Static
Whether the component is valid.
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
This component is added to any entity when it is riding another entity.
Example: getEntityRidingComponent.js