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

GPUPhysics: Integration shader

Sign in to follow this  
fortia

122 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!