Hi, I am trying to use hkpSampledHeightFieldShape, but I always get this warning during simulation:
Shape\HeightField\SampledHeightField\hkpSampledHeightFieldShape.cpp(107): [0x4B50036A] Warning: You must implement collideSpheres!
The implementation is:
class MySampledHeightFieldShape : public hkpSampledHeightFieldShape
{
public:
MySampledHeightFieldShape(const hkpSampledHeightFieldBaseCinfo& ci) : hkpSampledHeightFieldShape(ci) {}
HK_FORCE_INLINE hkReal getHeightAtImpl( int x, int z ) const{ return 0; }
HK_FORCE_INLINE hkBool getTriangleFlipImpl(){ return false; }
virtual void collideSpheres( const CollideSpheresInput& input, SphereCollisionOutput* outputArray) const
{
hkSampledHeightFieldShape_collideSpheres(*this, input, outputArray);
}
};
So, how should I remove warning?


