Esempio n. 1
0
 public NativeColliderGroup(BlittableCollider[] colliders, NativeTransform nativeTransform)
 {
     Colliders      = new NativeArray <BlittableCollider>(colliders, Allocator.Persistent);
     _nativePointer = new NativePointer <BlittableColliderGroup>(new BlittableColliderGroup(Colliders, nativeTransform.GetUnsafePtr()));
 }
Esempio n. 2
0
        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);
        }