Exemple #1
0
 public Bullet(GameObject target, Vector2 worldPosition, ProjectileData projectileData) :
     base(target, worldPosition, projectileData)
 {
     RigidBody = AddModule(new RigidBodyModule(new Vector2(0, 1000)));
 }
Exemple #2
0
 public Asteroid(float xLinearVelocity, Vector2 localPosition, string textureAsset) :
     base(localPosition, textureAsset)
 {
     RigidBody = AddModule(new RigidBodyModule(new Vector2(xLinearVelocity, 0)));
 }