bullet3
bullet3 copied to clipboard
[pybullet] Unexpected behavior of keyword argument `rgbaColors` in `createVisualShapeArray`
Providing an array of rgba colors in createVisualShapeArray is not working.
Taking the example referenced in the "PyBullet Quickstart Guide"
visualShapeId = p.createVisualShapeArray(shapeTypes=[p.GEOM_MESH, p.GEOM_BOX],
halfExtents=[[0, 0, 0], [0.1, 0.1, 0.1]],
fileNames=["duck.obj", ""],
visualFramePositions=[
shift1,
shift2,
],
meshScales=[meshScale, meshScale])
,adding rgbaColors as keyword argument with
rgbaColors=[[ 1, 0, 0, 1 ], [ 0, 1, 0, 1 ]]
should color both the duck and box differently. However, only the first one is considered for both visual shapes.
Thanks for the report, it is likely a bug indeed.