public unsafe NativeTransform( TransformRegistry transformRegistry, TransformSynchronizationType transformSynchronizationType, Transform transform, NativeTransform parent = null ) { _nativePointer = new NativePointer <BlittableTransform>(new BlittableTransform(parent != null ? parent.GetUnsafePtr() : null, transform)); Transform = transform; _transformRegistry = transformRegistry; _transformRegistry.Register(this, transformSynchronizationType); }
public NativeColliderGroup(BlittableCollider[] colliders, NativeTransform nativeTransform) { Colliders = new NativeArray <BlittableCollider>(colliders, Allocator.Persistent); _nativePointer = new NativePointer <BlittableColliderGroup>(new BlittableColliderGroup(Colliders, nativeTransform.GetUnsafePtr())); }