We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Applying any kind of PHYSICS.XXXModule to an object inside a group doesn't apply physics to that object.
PHYSICS.XXXModule
An example:
This works:
const mesh = new WHS.Plane({ geometry: { width: 1000, height: 1000, }, rotation: new THREE.Euler(-Math.PI / 2,0,0), modules: [ new PHYSICS.PlaneModule({ mass: 0, restitution: 0, }), ], material: new THREE.MeshPhongMaterial({ color: 0xffffff }) }); ground.addTo(app);
But if I replace the last line by:
const group = new WHS.Group(ground); group.addTo(app);
The plane will not have any physics.
The text was updated successfully, but these errors were encountered:
@sasha240100
Sorry, something went wrong.
No branches or pull requests
Hi,
Applying any kind of
PHYSICS.XXXModule
to an object inside a group doesn't apply physics to that object.An example:
This works:
But if I replace the last line by:
The plane will not have any physics.
The text was updated successfully, but these errors were encountered: