Skip to content

Commit

Permalink
Avatar User
Browse files Browse the repository at this point in the history
Added a tweak to allow users to be avatars.
Also deleted the old Rapier module
  • Loading branch information
bbupton committed Aug 8, 2023
1 parent d25664f commit eed7ce3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 200 deletions.
4 changes: 0 additions & 4 deletions packages/full/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ export * from "@croquet/worldcore-kernel";
export * from "@croquet/worldcore-three";
export * from "@croquet/worldcore-widget";
export * from "@croquet/worldcore-widget2";

// export * from "@croquet/worldcore-rapier";
// export * from "@croquet/worldcore-widget3";
// export * from "@croquet/worldcore-widget";
2 changes: 2 additions & 0 deletions packages/kernel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Spatial can have a non-spatial parent
- NavGrid & PathToBehavior
- AM_Spec
- AccountManager
- LevelManager
- user-level say() does an additional `publish("__wc", "say")`, internal `_say()` does not

### Changed
Expand Down
21 changes: 0 additions & 21 deletions packages/kernel/src/Spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,6 @@ export const AM_Spec = superclass => class extends superclass {
return spec;
}

// createFromSpec(spec) {
// let out = this;
// const actor = spec.actor;
// const children = spec.children || [];
// const options = {...spec};
// options.parent = this;
// delete options.actor;
// delete options.children;

// const a = Constants.WC_SPEC.get(actor);
// if (a) {
// out = a.create(options);
// } else {
// if (actor) console.error(actor + " not found during createFromSpec!");
// }

// for (const child of children) out.createFromSpec(child);

// return out;
// }

};
RegisterMixin(AM_Spec);

Expand Down
3 changes: 1 addition & 2 deletions packages/kernel/src/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ModelService} from "./Root";

export class User extends Actor {
get userId() { return this._userId }
get driver() { return this._userId }
get userNumber() { return this._userNumber }
}
User.register('User');
Expand Down Expand Up @@ -116,8 +117,6 @@ export const PM_Avatar = superclass => class extends superclass {

export class Account extends Actor {
get accountId() { return this._accountId }
// get online() { return this._online }
// get owner() { return this._owner }
}
Account.register('Account');

Expand Down
3 changes: 3 additions & 0 deletions packages/rapier/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
Kinematic rigid bodies

### Changed
Upgraded to Rapier 0.11.0
RapierManager doesn't hold world
Expand Down
173 changes: 0 additions & 173 deletions packages/rapier/src/RapierPhysics.js

This file was deleted.

0 comments on commit eed7ce3

Please sign in to comment.