SGDE.Physics.PhysicsBaby.IsStatic C# (CSharp) Method

IsStatic() public method

Get if the PhysicsBaby is static (doesn't move).
public IsStatic ( ) : bool
return bool
        public bool IsStatic()
        {
            return bStatic;
        }

Usage Example

Beispiel #1
0
        /// <summary>
        /// Add a PhysicsBaby to be managed by the Pharaoh.
        /// </summary>
        /// <param name="physBaby">The PhysicsBaby to add.</param>
        public void AddPhysicsBaby(PhysicsBaby physBaby)
        {
            if (ContentUtil.LoadingBuilders || physBaby == null)
            {
                return;
            }
            physBaby.AddForce(mGravity);

            if (physBaby.IsStatic())
            {
                mStaticBabies.Add(physBaby);
            }
            else
            {
                mDynamicBabies.Add(physBaby);
            }
        }
All Usage Examples Of SGDE.Physics.PhysicsBaby::IsStatic