feat: no physics -> no physical trait
This commit is contained in:
parent
dff3591906
commit
2f6ec92c83
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user