static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.Jobs.TransformAccess o; o = new UnityEngine.Jobs.TransformAccess(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int ctor_s(IntPtr l) { try { UnityEngine.Jobs.TransformAccess o; o = new UnityEngine.Jobs.TransformAccess(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
public void Execute(int index, UnityEngine.Jobs.TransformAccess transform) { Vector3 pos = transform.position; pos += moveSpeed * deltaTime * (transform.rotation * new Vector3(0.0f, 0.0f, 1.0f)); if (pos.z < botBound) { pos.z = topBound; } transform.position = pos; }
private static extern void GetWorldToLocalMatrix(ref TransformAccess access, out Matrix4x4 m);
private static extern void SetLocalScale(ref TransformAccess access, ref Vector3 r);
private static extern void SetLocalRotation(ref TransformAccess access, ref Quaternion r);
private static extern void SetLocalPosition(ref TransformAccess access, ref Vector3 p);
private static extern void GetRotation(ref TransformAccess access, out Quaternion r);
private static extern void GetPosition(ref TransformAccess access, out Vector3 p);