C# Class Source.Collisions.Platform

A floor is pretty much a body with a color and specific height
Inheritance: Polygon
显示文件 Open project: HarkerGameDev/TheGame

Public Methods

Method Description
Platform ( Texture2D texture, Vector2 position, Vector2 size, float rotation = 0f ) : System

Creates a new platform

Method Details

Platform() public method

Creates a new platform
public Platform ( Texture2D texture, Vector2 position, Vector2 size, float rotation = 0f ) : System
texture Texture2D
position Vector2 Center of the platform
size Vector2 Size of the platform
rotation float Rotation of the platform in radians
return System