Skip to content

cocos2dx:The offset property can not be set when make polygon shape ? #13

@237676098

Description

@237676098

I see the code "PhysicsShapePolygon::create(polygon->vertices, polygon->numVertices, material, fd->center) " when add PolygonShape to body in the createBodyWithName function.But the fd.center property not be setted when parsed in function PhysicsShapeCache::addShapesWithFile(const std::string &plist, float scaleFactor).So I think should the fd.center be changed to fd.anchorPoint ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions