feat: no physics -> no physical trait

This commit is contained in:
cha0s 2019-04-10 19:28:13 -05:00
parent dff3591906
commit 2f6ec92c83

View File

@ -60,6 +60,10 @@ room.on('entityAdded', (entity) => {
const noClientTraits = [
'behaved',
];
// If there's no physics, then remove physical trait.
if (!room.world) {
noClientTraits.push('physical');
}
// Traits that only make sense for our self entity on the client.
const selfEntityOnlyTraits = [
'controllable',