See the file LICENSE for the license governing this code.
LevelObject > NonSolid
A type of LevelObject
which is non-solid, causing no collisions with other objects. See NonSolids.h for examples.
#pragma once
#include "Headers.h"
class NonSolid : public LevelObject
{
public:
virtual const char* const profileName()=0;
NonSolid() {}
virtual ~NonSolid() {}
// create no physics body by overriding superclass.
virtual void createBody(Physics& physics, void* userData) {}
private:
typedef LevelObject super;
typedef NonSolid self;
};
Core
Object types