/// <summary> /// Checks whether a certain element is inside a collision shape /// </summary> public bool IsElementWithin(PhysicalElement element) { return(MtaShared.IsElementWithinColShape(this.element, element.MTAElement)); }
/// <summary> /// This function is used to determine if an element is within a collision shape /// Please note that this function doesn't verify whether element is in the same dimension and interior, additional checks could be implemented manually if they are needed. /// </summary> public bool IsWithinCollisionShape(CollisionShape collisionShape) { return(MtaShared.IsElementWithinColShape(element, collisionShape.MTAElement)); }