Skip to main content

Entities

Interacting with Entities

Code Examples: https://github.com/yantra-core/sdk/tree/master/examples

Setting an Entity

You can directly create, update, or destroy entities by calling client.set(state).

client.set(state);

Creating an entity

client.create(state);

Updating an entity

client.update(entityId, state);

Applying force

client.applyForce(entityId, forceObject);

Setting velocity

client.setVelocity(entityId, velocityObject);