Cleanup
This commit is contained in:
13
core/src/mindustry/entities/def/MassComp.java
Normal file
13
core/src/mindustry/entities/def/MassComp.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package mindustry.entities.def;
|
||||
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.gen.*;
|
||||
|
||||
@Component
|
||||
abstract class MassComp implements Velc{
|
||||
float mass = 1f;
|
||||
|
||||
public void applyImpulse(float x, float y){
|
||||
vel().add(x / mass, y / mass);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user