BEPUphysics.Entities.MorphableEntity.SetCollisionInformation C# (CSharp) Метод

SetCollisionInformation() публичный Метод

Sets the collision information of the entity to another collidable.
public SetCollisionInformation ( EntityCollidable newCollisionInformation ) : void
newCollisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable New collidable to use.
Результат void
        public void SetCollisionInformation(EntityCollidable newCollisionInformation)
        {
            //Temporarily remove the object from the space.  
            //The reset process will update any systems that need to be updated.
            //This is not thread safe, but this operation should not be performed mid-frame anyway.
            ISpace space = Space;
            if (space != null)
                Space.Remove(this);

            CollisionInformation.Entity = null;

            if (isDynamic)
                Initialize(newCollisionInformation, mass);
            else
                Initialize(newCollisionInformation);

            if (space != null)
                space.Add(this);
        }

Same methods

MorphableEntity::SetCollisionInformation ( EntityCollidable newCollisionInformation, float newMass ) : void
MorphableEntity::SetCollisionInformation ( EntityCollidable newCollisionInformation, float newMass, Matrix3x3 newInertia ) : void