0
나는 단순히 b2Shape
에서 b2PolygonShape
를 만들기 위해 노력하고 있지만라는 오류가 오전 : Dynamic-cast from 'const b2Shape*' to 'b2PolygonShape*' casts away qualifiers
'const b2Shape *'에서 'b2PolygonShape *'로 다이나믹 캐스트하면 한정어가 제외됩니다.
이 내 코드입니다 :
const b2Shape *s = fix2.shape;
b2PolygonShape *p = dynamic_cast<b2PolygonShape*>(s);
내가 잘못 뭐하는 거지?