use of org.terasology.engine.logic.characters.CharacterImpulseEvent in project Terasology by MovingBlocks.
the class MovementDebugCommands method pushCharacterCommand.
@Command(value = "pushCharacter", shortDescription = "Pushes you in the direction (x, y, z)", runOnServer = true)
public String pushCharacterCommand(@Sender EntityRef sender, @CommandParam("x") float x, @CommandParam("y") float y, @CommandParam("z") float z) {
ClientComponent clientComponent = sender.getComponent(ClientComponent.class);
clientComponent.character.send(new CharacterImpulseEvent(new Vector3f(x, y, z)));
return "Pushing character with " + x + " " + y + " " + z;
}
Aggregations