public void Physicalize(PhysicalizationParams physicalizationParams) { NativePhysicsMethods.Physicalize(this.GetIEntity(), physicalizationParams); if (physicalizationParams.type == PhysicalizationType.None) { _physics = null; } else { _physics = PhysicalEntity.TryGet(NativePhysicsMethods.GetPhysicalEntity(EntityHandle)); } }
/// <summary> /// Save the current physics settings. /// </summary> public void Save() { NativePhysicsMethods.Physicalize(Owner.GetIEntity(), _params); }