All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.component.PooledObjectPosition Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.artemis.component;

import com.artemis.Component;
import com.artemis.annotations.PooledWeaver;
import com.artemis.util.Vec2f;

@PooledWeaver
public class PooledObjectPosition extends Component {
	public Vec2f vec2 = new Vec2f(0, 0);

	public PooledObjectPosition xy(float x, float y) {
		vec2.x = x;
		vec2.y = y;
		return this;
	}

	@Override
	public String toString() {
		return "Position [x=" + vec2.x + ", y=" + vec2.y + "]";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy