Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Dev to Int (#10892)
Browse files Browse the repository at this point in the history
* Revert "Physics reactivity for collider component updates and order dependenc…" (#10876)

This reverts commit 33afb3b.

* fix collider reactivity (#10877)

* fix collider reactivity

* fix tests

* optimize

* fix duplicate new scene (#10880)

* rigidbody initialization quick fix (#10883)

* Upload drag drop files MT fix (#10881)

* Upload drag drop files MT fix

* Array length check

* LerpTransform from rigid body uses rigid body instead of scene entity (#10882)

* remove old workflows (#10886)

* fix rigidbody crash server (#10891)

---------

Co-authored-by: Josh Field <[email protected]>
Co-authored-by: Michael Estes <[email protected]>
Co-authored-by: Daniel Belmes <[email protected]>
Co-authored-by: lucas3900 <[email protected]>
  • Loading branch information
5 people authored Aug 6, 2024
1 parent dbec670 commit bde4b45
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 182 deletions.
91 changes: 0 additions & 91 deletions .github/workflows/dev-deploy.yml

This file was deleted.

91 changes: 0 additions & 91 deletions .github/workflows/prod-deploy.yml

This file was deleted.

2 changes: 2 additions & 0 deletions packages/spatial/src/physics/components/RigidBodyComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { Types } from 'bitecs'
import { useEntityContext } from '@etherealengine/ecs'
import {
defineComponent,
hasComponent,
removeComponent,
setComponent,
useComponent
Expand Down Expand Up @@ -123,6 +124,7 @@ export const RigidBodyComponent = defineComponent({
component.initialized.set(true)
return () => {
Physics.removeRigidbody(physicsWorld, entity)
if (!hasComponent(entity, RigidBodyComponent)) return
component.initialized.set(false)
}
}, [physicsWorld])
Expand Down

0 comments on commit bde4b45

Please sign in to comment.