I see, so the right script must be entity.collision.model=entity.model; since the entity model is already defined, i noticed that in rigidbody i defined it as ‘Dynamic’ and didn’t work so i changed it to ‘dynamic’ and now fall through the ground, means collision don’t work, i tried to add enabled: true inside the addComponent but nothing changed … little lost
No the ground is ok, the problem is to write in the right way the entity.collision.model line. Since the modelAsset is an asset, the entity.model is a ModelComponent and use directly ‘bow.json’ doesn’t work too… i think i miss a notion
Hi again, i have done a test, and i have got the problem:
if i create an entity with model + rigidbody + collision component it will fall through the ground, to solve that i need an entity with a rigidbody & collision components, and a child with the model, that way it works…awww… was tiring
Edit: but to attach it to the character i need to disable rigidbody and collision…headache