Exemplo n.º 1
0
 public void OnParallelTriggerExit(ParallelRigidbody3D other)
 {
     foreach (IParallelTrigger3D trigger in parallelTriggers)
     {
         trigger.OnParallelTriggerExit3D(other);
     }
 }
Exemplo n.º 2
0
        public PBody3D(IntPtr intPtr, UInt16 bodyID, ParallelRigidbody3D rigidBody, UInt16 exportSize) : base(intPtr)
        {
            BodyID    = bodyID;
            RigidBody = rigidBody;

            bodyExports      = new PBodyExport3D[exportSize];
            _exportsCapacity = exportSize;

            _index       = 0;
            _maxIndex    = 0;
            _maxStep     = 0;
            _minStep     = 0;
            awake        = true;
            _initialized = false;
        }
Exemplo n.º 3
0
        void UpdateRigidbodyTransform()
        {
            if (_rigidbody2D == null)
            {
                _rigidbody2D = GetComponent <ParallelRigidbody2D>();
            }

            if (_rigidbody3D == null)
            {
                _rigidbody3D = GetComponent <ParallelRigidbody3D>();
            }

            if (_rigidbody2D != null)
            {
                Parallel2D.UpdateBodyTransForm(_rigidbody2D._body2D, (Fix64Vec2)_localPosition, Fix64.DegToRad(_internalLocalEularAngles.z));
            }

            if (_rigidbody3D != null)
            {
                Parallel3D.UpdateBodyTransForm(_rigidbody3D._body3D, _localPosition, _internalLocalRotation);
            }
        }
Exemplo n.º 4
0
 internal void SetContact(PContact3D contact, ParallelRigidbody3D rigidBody)
 {
     _contact       = contact;
     otherRigidbody = rigidBody;
 }