SCircle
public class SCircle : ICollisionShape
{
public SVector position = new SVector();
public sfloat radius = (sfloat)1;
public Color colour = new Color(0.0f, 1f, 0.0f, 0.1f);
public SCircle()
{
sfloat radius = (sfloat)1;
}
CollisionShapeType ICollisionShape.GetType()
{
return CollisionShapeType.circle;
}
}
Basic class representing a circle with a position and radius. Also includes colour attribute purely for visualisation in the editor if used with an ObjectCircle
Methods
public SCircle()
Basic constructor to make a circle with radius size 1
CollisionShapeType ICollisionShape.GetType()
Returns that it is a circle type of collision shape