-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
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
Andy Question #62
Comments
Hi, thanks for the kind words! Let's see, you mean using the brand new ES6 version I pushed like yesterday right? And do you mean the Babylon.js particle system? If so, then I think the steps to be aware of are:
import { ParticleSystem } from '@babylonjs/core'
console.log(ParticleSystem) I think that's all there is to it.. but I think Babylon has several different particle systems, and I don't know the details on how they're imported or used. Does that help? |
PS: if you don't want to mess with granular imports, you may find it easier to do: import * as BABYLON from '@babylonjs/core'
window.BABYLON = BABYLON at startup, and then I think you should be able to just reference |
sorry I think you misunderstood me , I have been using your engine for a week now , I added NPC and FOG and a watermesh , so your engine is running fine , wath Im trying to do is make the blocksmoke particles collide with terrain .how would I proceed with that |
Ah, I understand now. Noa doesn't have any particular features related to particles. If you're starting from scratch, I believe Babylon has some particle modules or similar - it's a really full-featured 3D engine. Or, if you mean are already working with particles but you need to make them collide with terrain, the basic answer would be to change their position update function to check terrain when they cross a voxel boundary - the function to do that is: noa.world.getBlockSolidity(x, y, z) Does that help any? |
first of all amazing work , too good to be true , amazing programming , Andy Im trying to accessMeshParticleSystem library from another part of the script , to be honest with you I dont know nothing about ES6 only javascript , how do we access libraries it puzzles me ,thanks
The text was updated successfully, but these errors were encountered: