Skip to content

Commit 315ea64

Browse files
committed
Update migration guide
1 parent 898a144 commit 315ea64

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

migration-guides/0.5-to-main.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ since the latest release. These guides are evolving and may not be polished yet.
66
See [migration-guides/README.md](./README.md) and existing entries for information about Avian's
77
migration guide process and what to put here.
88

9-
## `ReadRigidBody` and `WriteRigidBody`
9+
## `ReadRigidBodyForces` and `WriteRigidBodyForces`
1010

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:
1212

1313
```rust
1414
pub trait RigidBodyForces: ReadRigidBodyForces + WriteRigidBodyForces {}
1515
```
1616

1717
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

Comments
 (0)