aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/physical_with_external_force.js
blob: 32695c7aa85d81870fdc311ee963649285dafa6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Node } from '@serpentity/serpentity';

import BodyComponent from '../components/body';
import ForceComponent from '../components/force';

/**
 * Node identifying an entity that has externally applied force
 *
 * @extends {external:Serpentity.Node}
 * @class PhysicalWithExternalForceNode
 */
export default class PhysicalWithExternalForceNode extends Node {

};

/**
 * Holds the types that are used to identify an entity with a physical
 * body
 *
 * @property {object} types
 * @name types
 * @memberof PhysicalWithExternalForceNode
 */
PhysicalWithExternalForceNode.types = {
  body: BodyComponent,
  force: ForceComponent
};