Hi, I have built a simple round race-track using the threejs editor and Kenney assets:
I then export this as a glb and import it in PlayCanvas using:
app.assets.loadFromUrl(url, "container", function(err, asset) {
var track = new pc.Entity();
track.addComponent("model", {
type: "asset",
asset: asset.resource.model,
});
track.setLocalScale(10,10,10);
//CODE
});
And I’m adding collision to it by doing:
track.addComponent("collision", {
type: "mesh",
asset: asset.resource.model,
});
But the result is quite unexpected. The player is able to stand in the empty space in the centre and also for as far away from the track as I tried to go. The player would never fall off.
Is there any way to fix/debug this? Thanks!