Skip to content

Commit

Permalink
refactor(core): use object3d instead of groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Nov 6, 2024
1 parent c2eb175 commit 7b6409c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/RigidBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ onUnmounted(() => {
</script>

<template>
<TresGroup ref="bodyGroup">
<TresObject3D ref="bodyGroup">
<BaseCollider
v-for="(_props, id) in autoColliderProps"
:key="id"
Expand All @@ -155,5 +155,5 @@ onUnmounted(() => {
:collisionGroups="collisionGroups"
/>
<slot v-once></slot>
</TresGroup>
</TresObject3D>
</template>
4 changes: 2 additions & 2 deletions src/components/colliders/BaseCollider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ onUnmounted(() => {
</script>

<template>
<TresGroup>
<TresObject3D>
<slot></slot>
</TresGroup>
</TresObject3D>
</template>

0 comments on commit 7b6409c

Please sign in to comment.