diff --git a/physx/source/geomutils/src/gjk/GuGJKType.h b/physx/source/geomutils/src/gjk/GuGJKType.h index a0099e2f..b824ec7a 100644 --- a/physx/source/geomutils/src/gjk/GuGJKType.h +++ b/physx/source/geomutils/src/gjk/GuGJKType.h @@ -151,7 +151,7 @@ namespace Gu virtual Ps::aos::Vec3V getCenter() const { return mAToB.transform(getConvex().getCenter()); } - PX_FORCE_INLINE Ps::aos::PsMatTransformV& getRelativeTransform(){ return mAToB; } + PX_FORCE_INLINE const Ps::aos::PsMatTransformV& getRelativeTransform(){ return mAToB; } //ML: we can't force inline function, otherwise win modern will throw compiler error PX_INLINE RelativeConvex::Type > getGjkConvex() const