Quality of life/convenience umbrella #76
Replies: 12 comments 1 reply
-
To get started:
|
Beta Was this translation helpful? Give feedback.
-
Here are some (mostly minor) pain points of mine:
|
Beta Was this translation helpful? Give feedback.
-
Are you referring to the annoyance of setting up a BodyReference from a handle, or the lack of helpers (like automatically waking a sleeping body when changing the pose), or something else? (Or do you just mean that accessing properties through the Bodies sets directly comes with a lot of tedium?) |
Beta Was this translation helpful? Give feedback.
-
Another one that's a little more work intensive and would imply a rather thick form of convenience layer: |
Beta Was this translation helpful? Give feedback.
-
Getting the description from the correct set, modifying it, applying and optionally waking the body. Not a huge amount of work, but enough to appreciate a helper method SetPose(CollidableReference, Pose) |
Beta Was this translation helpful? Give feedback.
-
Latest version now includes:
This brings the BodyReference up to feature parity with the public Bodies API. The by-ref properties and such still don't force a wakeup (both to avoid issues when waking is undesired and to avoid overhead), but the Awake property being settable makes things easier. How's that look for a start? |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm writing some serialization code for convex hulls and it turns out there's quite a bit of typing and potentially a bit of copying that could be avoided. Would it be possible to add some helper methods to Buffer and/or QuickList to interact with "normal" spans of integers and Vector3s? |
Beta Was this translation helpful? Give feedback.
-
Probably! Any particular areas of annoyance? Most such changes would require adding System.Memory as a dependency since .NET Standard 2.0 doesn't include it (and older Framework runtimes will resort to a 'slow span'), but that's not a huge problem. |
Beta Was this translation helpful? Give feedback.
-
2f4880c adds span conversions to buffer and collections, and ec9d4ff makes ConvexHullHelper operate on Span for input pointsets. Any other areas? Edit: and a bit more: f29c5de |
Beta Was this translation helpful? Give feedback.
-
Quick feedback as always; thanks! |
Beta Was this translation helpful? Give feedback.
-
Buffer construction is very convoluted. |
Beta Was this translation helpful? Give feedback.
-
have you looked at FlatPack? https://github.com/jamescourtney/FlatSharp might help with this serialization stuff.. |
Beta Was this translation helpful? Give feedback.
-
v2's API is very low level. It'll let you shoot yourself in the foot, and for the sake of directness or control, it sometimes requires a bit more effort to set things up.
It would be nice to do a couple of things:
This is an umbrella issue for reporting areas of the API that you find particularly difficult to use (even if you can't pinpoint exactly how to improve them), for API shapes you might like to see in a convenience layer, what kinds of tradeoffs you're willing to accept in convenience layers (GC, performance overhead, etc.), and anything else you think is relevant.
Beta Was this translation helpful? Give feedback.
All reactions