Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    27
  • comments
    25
  • views
    6375

GPUPhysics: Integration shader

Sign in to follow this  
fortia

103 views

Now I've created one of the shaders: the shader for integration of the state variables (position,rotation,velocities) for a rigid body. The code can be found here. It currently does not support collisions, but as a first goal I want to get a simulation to run without them...

An unsolved problem is that I have to be able to disable physics on an agent (approximated by a rigid body) if it reaches an equilibrium. Then AI and player control would take by. I'm not quite sure of the conditions for equilibrium and would need to adjust them when testing later. Currently I only test if linear and angular velocity are below a certain threshold value. But I'm not sure that will work as I want it to.

Physics on a body could be re-activated by the collision shader (if colliding) as well as both activated and de-activated by the user (programmer).

REMARK: Didn't test the shader. Have to complete user interface first before creating a demo.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!