C# 클래스 Server.Planets

This class represents a Planets that it would be not affected by gravity and collisions with other objects.
상속: GameObject
파일 보기 프로젝트 열기: pmyoung/Advanced-Game-Project 1 사용 예제들

공개 메소드들

메소드 설명
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