You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```struct PositionUpdateJob : IJobParallelForTransform
{
[ReadOnly]
public NativeArray<Vector3> velocity; // the velocities from AccelerationJob
[ReadOnly]
public Transform[] trans; // here
public float deltaTime;
public void Execute(int i, TransformAccess transform)
{
//trans[i].LookAt(Camera.main.transform.position);
transform.position += velocity[i] * deltaTime;
}
}```
The text was updated successfully, but these errors were encountered:
Hi, Than I added new field in PositionUpdateJob struct https://github.com/stella3d/job-system-cookbook/blob/master/Assets/Scripts/AccelerationParallelFor.cs line36 the сubes stopped moving. My code:
The text was updated successfully, but these errors were encountered: