cocos2d-x
cocos2d-x copied to clipboard
Physics3D Test in cpp-tests fails if boss.c3b is replaced by boss.obj
- cocos2d-x version: v4
- devices test on: iPhone SE3 simulator iOS 15.4
- developing environments
- NDK version: NIL
- Xcode version: 13.3.1
- VS version:
- browser type and version:
Steps to Reproduce:
- In bool Physics3DCollisionCallbackDemo::init(),
Change std::vector<Vec3> trianglesList = Bundle3D::getTrianglesList("Sprite3DTest/boss.c3b"); to std::vector<Vec3> trianglesList = Bundle3D::getTrianglesList("Sprite3DTest/boss.obj");
Change auto sprite = Sprite3D::create("Sprite3DTest/boss.c3b"); to auto sprite = Sprite3D::create("Sprite3DTest/boss.obj", "Sprite3D/boss.png");
-
Compile cpp-tests on iPhone simulator then run
-
Goto Physics3D Test (sub-test 4) then throw an item by clicking the screen
-
You will see the model image (in red color) distorted
-
Two images (before image distorted and after image distorted) are uploaded
