cassius Posted April 4, 2012 Share Posted April 4, 2012 I have sword fights in my game which work smoothly enough on level surfaces , but when the enemy character follows my main character onto a stairway the enemy flickers violently when the two controllers collide. If I use a ramp instead of stairs there is no problem. This problem does not show up in the controller tutorial because no enemy controller is used in that. Is there a solution to this prob? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
AggrorJorn Posted April 4, 2012 Share Posted April 4, 2012 Can you make a video? I would like to see how the controllers are colliding (with debugphysics). Quote Link to comment Share on other sites More sharing options...
Pixel Perfect Posted April 4, 2012 Share Posted April 4, 2012 Most people would use a simplified physics representation like a ramp for stairs, otherwise you need to control the vertical movement in code. I do this in my stranded game to ensure a nice vertical progression when climbing stairs and not the sudden unnatural jump you get otherwise. The controllers do vertical displacement as a result of the physics instantly, that's probably what you are seeing when they are on the edge of a step. Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
cassius Posted April 5, 2012 Author Share Posted April 5, 2012 Sorry can't do videos(yet). Thanks for advice. I found a texture that looks like steps and I am using it on a ramp. looks quite convincing under a dim light.Trust me to find a lazy way. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Daimour Posted April 5, 2012 Share Posted April 5, 2012 I found a texture that looks like steps and I am using it on a ramp. You can use different 3D models for mesh and for physics body. So it can still look like a stairways but use ramp for physics. Quote Link to comment Share on other sites More sharing options...
cassius Posted April 5, 2012 Author Share Posted April 5, 2012 Good idea daimour. Thanks. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.