Hello, currently facing the same issue as the ones mentioned above. Thank you for the suggestions UE_FlavienP.
I am currently editing my usda file with the code you wrote above and in my case I want to set my mesh definition to have collision enabled with a simple box collision
def Xform "Floor_119"
{
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (-9, -4.76837158203125e-7, 0, 1) )
uniform token[] xformOpOrder = ["xformOp:transform"]
def Mesh "FloorMesh"
{
prepend apiSchemas = ["PhysicsCollisionAPI", "PhysicsMeshCollisionAPI"]
float3[] extent = [(-3, 0, -0.31380272), (0, 3, 0)]
int[] faceVertexCounts = [4, 4, 4, 4, 4, 4]
int[] faceVertexIndices = [0, 1, 3, 2, 2, 3, 7, 6, 6, 7, 5, 4, 4, 5, 1, 0, 2, 6, 4, 0, 7, 3, 1, 5]
normal3f[] normals = [(-0.99999994, 0, 0), (-0.99999994, 0, 0), (-0.99999994, 0, 0), (-0.99999994, 0, 0), (0, 0.99999994, 0), (0, 0.99999994, 0), (0, 0.99999994, 0), (0, 0.99999994, 0), (0.99999994, 0, 0), (0.99999994, 0, 0), (0.99999994, 0, 0), (0.99999994, 0, 0), (0, -0.99999994, 0), (0, -0.99999994, 0), (0, -0.99999994, 0), (0, -0.99999994, 0), (0, 0, -1), (0, 0, -1), (0, 0, -1), (0, 0, -1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1)] (
interpolation = "faceVarying"
)
point3f[] points = [(-3, 0, -0.31380272), (-3, 0, 0), (-3, 3, -0.31380272), (-3, 3, 0), (0, 0, -0.31380272), (0, 0, 0), (0, 3, -0.31380272), (0, 3, 0)]
bool[] primvars:sharp_face = [1, 1, 1, 1, 1, 1] (
interpolation = "uniform"
)
texCoord2f[] primvars:UVMap = [(0.375, 0), (0.625, 0), (0.625, 0.25), (0.375, 0.25), (0.375, 0.25), (0.625, 0.25), (0.625, 0.5), (0.375, 0.5), (0.375, 0.5), (0.625, 0.5), (0.625, 0.75), (0.375, 0.75), (0.375, 0.75), (0.625, 0.75), (0.625, 1), (0.375, 1), (0.125, 0.5), (0.375, 0.5), (0.375, 0.75), (0.125, 0.75), (0.625, 0.5), (0.875, 0.5), (0.875, 0.75), (0.625, 0.75)] (
interpolation = "faceVarying"
)
uniform token subdivisionScheme = "none"
uniform token physics:approximation = "boundingCube"
bool physics:collisionEnabled = 1
}
}
However, I get a syntax error pointing at the prepend apiSchemas = [“PhysicsCollisionAPI”, “PhysicsMeshCollisionAPI”]
if I remove it and reload the usd file in the stager it imports fine and even shows the options in mesh definition

But because theres no physics schemas, it still doesnt create any sort of collision - I saw that your suggested code and what I see in my text editor seem to differ a bit in syntax, so is there any specific place where I should add the prepend line for it to work?
Thank you in advance!