aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/physical_with_external_force.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nodes/physical_with_external_force.js')
-rw-r--r--lib/nodes/physical_with_external_force.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/nodes/physical_with_external_force.js b/lib/nodes/physical_with_external_force.js
new file mode 100644
index 0000000..32695c7
--- /dev/null
+++ b/lib/nodes/physical_with_external_force.js
@@ -0,0 +1,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
+};