C# Класс Server.Planets

This class represents a Planets that it would be not affected by gravity and collisions with other objects.
Наследование: GameObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
applyGravity ( Bullet b ) : void

This function changes the speed of the object based on its proximity to its Planet instance

applyGravity ( Player p ) : void

This function changes the speed of the object based on its proximity to its Planet instance

Описание методов

applyGravity() публичный Метод

This function changes the speed of the object based on its proximity to its Planet instance
public applyGravity ( Bullet b ) : void
b Bullet An instance to a Bullet
Результат void

applyGravity() публичный Метод

This function changes the speed of the object based on its proximity to its Planet instance
public applyGravity ( Player p ) : void
p Player An instance to a player
Результат void