Skip to content
Permalink
53bf0bd95c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (22 sloc) 517 Bytes
#include "SphereCollider.h"
#include <iostream>
SphereCollider::SphereCollider()
{
}
SphereCollider::SphereCollider(float radius, CR217::CRVec3 position) : GameObject (position.x, position.y, position.z)
{
}
void SphereCollider::Draw()
{
glPushMatrix();
glColor3f(0.f, 0.f, 1.0f);
glTranslatef(position.x, position.y, position.z);
glutWireSphere(radius, 10, 10);
glPopMatrix();
}
void SphereCollider::Update(float)
{
}
SphereCollider::~SphereCollider()
{
}