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));
            }
        }
 /// <summary>
 /// Clears the current physics settings.
 /// </summary>
 public void Clear()
 {
     _params = new PhysicalizationParams();
 }
 internal static extern void _Physicalize(uint entityId, PhysicalizationParams physicalizationParams);