summary refs log tree commit diff stats
path: root/src/components
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-05-04 11:08:48 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-05-09 17:59:13 -0400
commit83534176373bd05a13db88ffff095f52cca07a21 (patch)
treeab36e74f2d7ad53284cd875cac56f657d9325cf8 /src/components
parent893dbf8a235db2b4f1fafacf90290b0821f0048c (diff)
downloadtherapy-83534176373bd05a13db88ffff095f52cca07a21.tar.gz
therapy-83534176373bd05a13db88ffff095f52cca07a21.tar.bz2
therapy-83534176373bd05a13db88ffff095f52cca07a21.zip
Fixed behavior of frozen bodies
Frozen bodies are now still ticked, but their velocities and positions are no longer changed. This change was made so that frozen bodies can still be ungrounded/unferried, and that passengers of frozen bodies can still be ticked.

Also fixes a compile error.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ponderable.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ponderable.h b/src/components/ponderable.h index 45150a0..6a01400 100644 --- a/src/components/ponderable.h +++ b/src/components/ponderable.h
@@ -100,7 +100,10 @@ public:
100 std::set<id_type> passengers; 100 std::set<id_type> passengers;
101 101
102 /** 102 /**
103 * If enabled, this will prevent the body from moving. 103 * If enabled, this will prevent the body from moving and accelerating. The
104 * velocity and position of the body can still be affected by sources external
105 * to the PonderingSystem. Enabling this will cause applicable bodies to
106 * become ungrounded and unferried.
104 */ 107 */
105 bool frozen = false; 108 bool frozen = false;
106 109