Skip to content

Commit

Permalink
component ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
LeXXik committed Jun 15, 2024
1 parent 2f50fc1 commit 584da1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/physics/jolt/front/body/component.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const vec3 = new Vec3();
* @category Body Component
*/
class BodyComponent extends ShapeComponent {
// ---- BODY PROPS ----
static order = -1;

_angularVelocity = new Vec3();

Expand Down
4 changes: 2 additions & 2 deletions src/physics/jolt/front/component.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { EventHandler } from 'playcanvas';

class Component extends EventHandler {
static order = 0;

_accessorsBuilt = false;

_enabled = true;
Expand All @@ -9,8 +11,6 @@ class Component extends EventHandler {

_entity = null;

_order = 0;

constructor(system, entity) {
super();

Expand Down

0 comments on commit 584da1f

Please sign in to comment.