Jump to content
xESWxDEATH

Disabling the physics engine

Recommended Posts

You could stop calling world->update(), but then you will have to handle particles and navigation your self also, which I think with switching physic engine you would have to any way ( particle coliding with terrain, dynamic changes to nav mesh due to physics )..

Share this post


Link to post

This would require a the standard license so that you can use C++. Without having knowledge on C++ I would not attempt this though. Josh stated that the physics engine could be "swapped out", but I really doubt it will be easy to do so.

Share this post


Link to post
but then you will have to handle particles and navigation your self also

Navigation is not dependent on physics, it just calculate path based on the navmesh.

Then you could make move any physic object on that path could it be Physics or Bullet.

For particles, it's only keeping same parameter forces but applied to a physic object created with physix.

 

 

The only requirement is having all physic functions of LE3 exposed on the API.

Share this post


Link to post

Navigation is not dependent on physics, it just calculate path based on the navmesh.

 

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/world/worldupdate-r503

 

"

 

World::Update

 

This function updates a world. Physics, particle emitters, navigation, and various other tasks will be updated. This function should be called once in the App::Loop() function.

 

"

 

so yeah navigation (, particles and "various other tasks") IS dependent on physics as it stands, unless you've some secret 'turn off physics' function up your sleve ;)

Share this post


Link to post

If you have a standard license you should take a look into the headers and checkout the base Physicsdriver class. In theory it is possible in c++ to write its own physicsdriver and attach it. but there is no real detail how to do it.

Share this post


Link to post

I have PhyX working and now im working on particles and turbulence

 

Mind showing it off when you get the chance?

 

Cloth Simulation would also be nice to have. :)

Share this post


Link to post
I have PhyX working and now im working on particles and turbulence

Great news.

About performance , do you have made some tests as last Physix should be really fast ?

Another cool feature is Apex destruction , would be cool if it could be possible to have it implemented cool.png

APEX_destructibleProj_APL.png

Share this post


Link to post

If you replace the NewtonDynamicsPhysicsDriver class with another class derived from the PhysicsDriver base class, you can use PhysX or another library, and the engine commands will all work. However, this is a rather advanced topic.

Share this post


Link to post

This may be the thing that pushes me to get the standard version of Leadwerks. Just going to watch this a while longer. smile.png

 

To see if anything come of it.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...