accessing a "third-party" transform and Raycast ing possible from a Job ?

many GameObject s having a MonoBehaviour-derived class X as a Component.

X changes the transform of the GameObject based on some calculation inside Update().

IJobParallelForTransform is a place for off-loading this calculation from “the main thread”.

A

  • Can this calculation access a transform of a GameObject unrelated to these above, inside a class implementing IJobParallelForTransform ?

Some explanation about the whole current state is what I’m inquiring here about; does it exist? Did I just miss it? Where?

B

  • Is aquiring the information I would otherwise aquire with Physics.Raycast() possible from a Job ?

Only transforms you put into TransformAccessArray can be accessed from within a IJobParallelForTransform job.
You can batch raycasts as a job using the RaycastCommand API. Or you can use a different physics solution that allows for raycasting from inside a job (requires a separate physics representation).