diff options
Diffstat (limited to 'lib/nodes/physical.js')
| -rw-r--r-- | lib/nodes/physical.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/nodes/physical.js b/lib/nodes/physical.js new file mode 100644 index 0000000..77139ec --- /dev/null +++ b/lib/nodes/physical.js @@ -0,0 +1,26 @@ +import { Node } from '@serpentity/serpentity'; + +import BodyComponent from '../components/body'; + +/** + * Node identifying an entity that can interact with physics + * + * @extends {external:Serpentity.Node} + * @class PhysicalNode + */ +export default class PhysicalNode extends Node { + +}; + +/** + * Holds the types that are used to identify an entity with a physical + * body + * + * @property {object} types + * @name types + * @memberof PhysicalNode + */ +PhysicalNode.types = { + body: BodyComponent +}; + |