mirror of https://github.com/axmolengine/axmol.git
recover the physics3DShape initHeightfield api
This commit is contained in:
parent
69040ef472
commit
5d281d45ef
|
@ -144,7 +144,7 @@ CC_CONSTRUCTOR_ACCESS:
|
|||
, const void* heightfieldData, float heightScale
|
||||
, float minHeight, float maxHeight
|
||||
, bool useFloatDatam, bool flipQuadEdges
|
||||
, bool useDiamondSubdivision = false);
|
||||
, bool useDiamondSubdivision);
|
||||
bool initCompoundShape(const std::vector<std::pair<Physics3DShape *, Mat4>> &shapes);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -322,7 +322,7 @@ bool js_cocos2dx_physics3d_Physics3dShape_initHeightfield(JSContext *cx, uint32_
|
|||
|
||||
bool ret = false;
|
||||
if (argc == 8)
|
||||
ret = cobj->initHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7);
|
||||
ret = cobj->initHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7, false);
|
||||
else if (argc == 9)
|
||||
ret = cobj->initHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7, arg8);
|
||||
|
||||
|
|
Loading…
Reference in New Issue