Code Monkey home page Code Monkey logo

Comments (4)

fenomas avatar fenomas commented on May 17, 2024

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:

  1. make sure your project has babylon as a dependency
    i.e. npm i --save @babylonjs/core

  2. In your JS, import the specific babylon module:

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?

from noa.

fenomas avatar fenomas commented on May 17, 2024

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 BABYLON.Mesh.whatever like before.

from noa.

levlups avatar levlups commented on May 17, 2024

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

from noa.

fenomas avatar fenomas commented on May 17, 2024

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?

from noa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.