Nikita Gavrilov
Nikita Gavrilov
@garrynewman it looks like ```Task.IsCanceled``` ```Task.IsFaulted``` ```Task.Exception``` are not whitelisted can you please reopen the issue?
> My brain might be off here, but shouldn't you be using ToWorld methods only on Local Transforms, and ToLocal methods only on World Transforms? they do the same thing...
PointToLocal is backwards too, yeah You can see that multiplication order in Transform.ToWorld and its different to Transform.Local.PointToWorld (this one is wrong) Didnt look into other methods like NormalToWorld, probably...
> For what it's worth, I'm using the ToWorld/ToLocal methods on rotations, positions and normals in my teleportation code, and they seem to work just fine. > > Code I'm...
Accidentaly closed
here is working code ``` // // Summary: // Convert a point in world space to a point in this transform's local space public readonly Vector3 PointToLocal(Vector3 worldPoint) { return...
also you probably want to write tests, where it compares Transform.Local.PointToWorld(X) == Transform.Local.ToWorld(new Transform(X)).Position Transform.World.PointToLocal(X) == Transform.World.ToLocal(new Transform(X)).Position and something for normals (don't now to make a good one)
> I have made the changes and also removed scale from NormalToLocal and NormalToWorld as scaling normals here doesn't make much sense to me but happy to be proven wrong....
> unless scale is 0, not sure if it's usefull to have scale equal to 0, but it can make problems to someone Feel free to close if said above...
Sync is only supported inside a component class https://sbox.game/dev/doc/networking-multiplayer/sync-properties/