tksuoran/erhe

erhe::physics::EmptyShape': cannot instantiate abstract class

goldragoon opened this issue · 1 comments

Greetings!

I've faced a compilation error which :
erhe::physics::EmptyShape': cannot instantiate abstract class on 237th line of C:\Users\imagoworks\dev\erhe\src\erhe\physics\erhe_physics\jolt\jolt_collision_shape.cpp
image

I think that current EmptyShape::CollideSoftBodyVertices interface

    void CollideSoftBodyVertices(
        JPH::Mat44Arg                    inCenterOfMassTransform,
        JPH::Vec3Arg                     inScale,
        JPH::Array<JPH::SoftBodyVertex>& ioVertices,
        float                            inDeltaTime,
        JPH::Vec3Arg                     inDisplacementDueToGravity,
        int                              inCollidingShapeIndex
    ) const override
    {
        ...
    }

should be replaced to

    void CollideSoftBodyVertices(
        JPH::Mat44Arg                    inCenterOfMassTransform,
        JPH::Vec3Arg                     inScale,
        JPH::SoftBodyVertex*             ioVertices,
        JPH::uint                        inNumVertices,
        float                            inDeltaTime,
        JPH::Vec3Arg                     inDisplacementDueToGravity,
        int                              inCollidingShapeIndex
    ) const override
    {
        UNREFERENCED_PARAMETER(inNumVertices); // optional for warning suppression
        ...
    }

How do you think about this?