I noticed a typing inconsistency for TransformNode.physicsBody: its type is Nullable<PhysicsBody> but it can also be undefined like in this PG
That’s definitely not a huge issue, but it was probably not intended and can create issues when comparing the physics body to null explicitely (transform.physicsBody !== null).
Not really a downside, but I tend to be careful with those things because JS has some funny behaviors like if("") { // won't execute } and if(0) { // won't execute }.
That’s why there is stuff like this eslint rule:
That works for me, but the best solution imo would be to initialize physicsBody to null in the constructor so that the API type does not change (that would still count as a breaking change ^^)