Beispiel #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));
            }
        }
Beispiel #2
0
 /// <summary>
 /// Save the current physics settings.
 /// </summary>
 public void Save()
 {
     NativePhysicsMethods.Physicalize(Owner.GetIEntity(), _params);
 }