Universe.Physics.BulletSPlugin.BSLinksetCompound.PreferredPhysicalShape C# (CSharp) Method

PreferredPhysicalShape() public method

public PreferredPhysicalShape ( BSPrimLinkable requestor ) : BSPhysicsShapeType
requestor BSPrimLinkable
return BSPhysicsShapeType
        public override BSPhysicsShapeType PreferredPhysicalShape(BSPrimLinkable requestor)
        {
            // Returning 'unknown' means we don't have a preference.
            BSPhysicsShapeType ret = BSPhysicsShapeType.SHAPE_UNKNOWN;
            if (IsRoot(requestor) && HasAnyChildren)
            {
                ret = BSPhysicsShapeType.SHAPE_COMPOUND;
            }
            // DetailLog("{0},BSLinksetCompound.PreferredPhysicalShape,call,shape={1}", LinksetRoot.LocalID, ret);
            return ret;
        }