use of org.terasology.engine.physics.events.ImpulseEvent in project Terasology by MovingBlocks.
the class BlockEntitySystem method processDropping.
private void processDropping(EntityRef item, Vector3ic location, float impulsePower) {
item.send(new DropItemEvent(new Vector3f(location)));
item.send(new ImpulseEvent(random.nextVector3f(impulsePower, new Vector3f())));
}
Aggregations