You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
Fixes#922.
If you try to despawn a sleeping body, you might occasionally get a warning like "Tried to wake body 3127v2 that does not exist". This is because we have a hook that applies the `WakeBody` command when `Sleeping` is removed, and that command emits a warning for non-existent bodies.
## Solution
Use proper error handling for the command, and use `queue_silenced` in the hook.
## Testing
Despawned some sleeping bodies.
Copy file name to clipboardExpand all lines: migration-guides/0.5-to-main.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,17 @@ since the latest release. These guides are evolving and may not be polished yet.
6
6
See [migration-guides/README.md](./README.md) and existing entries for information about Avian's
7
7
migration guide process and what to put here.
8
8
9
-
## `ReadRigidBody` and `WriteRigidBody`
9
+
## `ReadRigidBodyForces` and `WriteRigidBodyForces`
10
10
11
-
PR [#908](https://github.com/avianphysics/avian/pull/908) introduced two new traits: `ReadRigidBody` and `WriteRigidBody`, and `RigidyBodyForces` is now defined as:
11
+
PR [#908](https://github.com/avianphysics/avian/pull/908) introduced two new traits: `ReadRigidBodyForces` and `WriteRigidBodyForces`, and `RigidyBodyForces` is now defined as:
In most cases this should just work, but if it doesn't, you can replace your implementation for `RigidBodyForces` with both `ReadRigidBodyForces` and `WriteRigidBodyForces` where it is used / needed. Both traits are required to implement `RigidBodyForces`, but you can implement them separately.
18
+
19
+
## `SleepBody` and `WakeBody`
20
+
21
+
The `SleepBody` and `WakeBody` commands now return an error when applied for an entity that doesn't exist
22
+
or doesn't belong to an island. Previously, they logged a warning instead.
0 commit comments