Esempio n. 1
0
        public void Physicalize(PhysicalizationParams physicalizationParams)
        {
            NativePhysicsMethods.Physicalize(this.GetIEntity(), physicalizationParams);

            if (physicalizationParams.type == PhysicalizationType.None)
            {
                _physics = null;
            }
            else
            {
                _physics = PhysicalEntity.TryGet(NativePhysicsMethods.GetPhysicalEntity(EntityHandle));
            }
        }
Esempio n. 2
0
 internal PhysicalEntity(EntityBase _entity)
     : this()
 {
     owner  = _entity;
     Handle = NativePhysicsMethods.GetPhysicalEntity(Owner.GetIEntity());
 }