<commit_before>import QtQuick 2.0
import Box2D 2.0

InteractiveItem {
    id: character


    property double scale: 1.0
    property double bbScale: 1.0

    x: 0.1 * parent.width + Math.random() * 0.8 * parent.width
    y: 0.1 * parent.height + Math.random() * 0.8 * parent.height

    width: scale * 2 * parent.height * sandbox.physicalCubeSize / sandbox.physicalMapWidth
    rotation: -30 + Math.random() * 60


    boundingbox:  Circle {
        id: circleShape
        radius: bbScale * character.width/2
        x: character.width/2 - radius
        y: character.height/2 - radius
        density: 1
        friction: 1
        restitution: 0.1
    }


}<commit_msg>Character.qml: use Polygon instead of Circle for boundingbox<commit_after>import QtQuick 2.0
import Box2D 2.0

InteractiveItem {
    id: character


    property double scale: 1.0
    property double bbScale: 1.0

    x: 0.1 * parent.width + Math.random() * 0.8 * parent.width
    y: 0.1 * parent.height + Math.random() * 0.8 * parent.height

    width: scale * 2 * parent.height * sandbox.physicalCubeSize / sandbox.physicalMapWidth
    rotation: -30 + Math.random() * 60

    property double bbRadius: bbScale * character.width/2
    property point bbOrigin: Qt.point(character.width/2, character.height/2)


    boundingbox: Polygon {
                id:bbpoly
                vertices: [
                    Qt.point(bbOrigin.x + bbRadius, bbOrigin.y),
                    Qt.point(bbOrigin.x + 0.7 * bbRadius, bbOrigin.y + 0.7 * bbRadius),
                    Qt.point(bbOrigin.x, bbOrigin.y + bbRadius),
                    Qt.point(bbOrigin.x - 0.7 * bbRadius, bbOrigin.y + 0.7 * bbRadius),
                    Qt.point(bbOrigin.x - bbRadius, bbOrigin.y),
                    Qt.point(bbOrigin.x - 0.7 * bbRadius, bbOrigin.y - 0.7 * bbRadius),
                    Qt.point(bbOrigin.x, bbOrigin.y - bbRadius),
                    Qt.point(bbOrigin.x + 0.7 * bbRadius, bbOrigin.y - 0.7 * bbRadius)
                ]
                density: 1
                friction: 1
                restitution: 0.1
            }

}
{'fraction_non_alphanumeric': 0.11010486177311725, 'fraction_numerical': 0.03527168732125834, 'mean_word_length': 1.8519021739130435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5952221', 'n_tokens_mistral': 745, 'n_tokens_neox': 648, 'n_words': 160}