gamecreator Posted June 6, 2014 Share Posted June 6, 2014 I created a wall using terrain. However, my character (using a character controller) goes straight up it instead of bumping into it. Is there something I could be doing wrong or could this be a bug? player = Model::Load("Models/Mage/mage.mdl"); player->SetScale(0.02, 0.02, 0.02); player->SetMass(1); player->SetPhysicsMode(Entity::CharacterPhysics); player->SetShadowMode(1); float move = (window->KeyDown(Key::Up)-window->KeyDown(Key::Down))*8; float strafe = (window->KeyDown(Key::Right)-window->KeyDown(Key::Left))*8; player->SetInput(0, move, strafe); Link to comment Share on other sites More sharing options...
Guppy Posted June 6, 2014 Share Posted June 6, 2014 Fixed your image link; System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Josh Posted June 6, 2014 Share Posted June 6, 2014 Fixed your image link; lol Basically, I had to switch the terrain collision to a raycast as a quick fix for another problem, but I still have to take the normal into account to calculate sliding. There are a few small issues with the character controller I want to improve, and this is one. 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
gamecreator Posted June 6, 2014 Author Share Posted June 6, 2014 There are a few small issues with the character controller I want to improve, and this is one. Sweet. Is this still a current estimate? http://www.leadwerks.com/werkspace/topic/7958-navigation-without-physics/#entry63081 Link to comment Share on other sites More sharing options...
Josh Posted June 6, 2014 Share Posted June 6, 2014 Depends on when the summer solstice hits. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
gamecreator Posted June 6, 2014 Author Share Posted June 6, 2014 15 days. http://www.almanac.com/content/first-day-summer-summer-solstice Though to be honest I can work around this wall problem for now (by creating custom physics barriers in Max) and making less steep hills. My larger concern is if a dozen or more character controllers drastically slows down the game as that's what I'll be trying to implement soon. Link to comment Share on other sites More sharing options...
Rick Posted June 6, 2014 Share Posted June 6, 2014 Just curious why you are thinking of making custom physics barriers in max vs using csg in the editor that you paint with the invisible material? 2 Link to comment Share on other sites More sharing options...
gamecreator Posted June 6, 2014 Author Share Posted June 6, 2014 Good point. Habit. I've just never really used CSG yet so I tend to forget about it. Link to comment Share on other sites More sharing options...
Rick Posted June 6, 2014 Share Posted June 6, 2014 It's the beez neez! 1 Link to comment Share on other sites More sharing options...
Haydenmango Posted June 7, 2014 Share Posted June 7, 2014 My larger concern is if a dozen or more character controllers drastically slows down the game as that's what I'll be trying to implement soon. Hm well I am not completely sure if this is related but my game I'm working on using has like 20-30 character controllers that travel on terrain and it lags pretty hard. The only thing I have found that increases my fps is deleting/hiding some of my character controllers. Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
gamecreator Posted June 7, 2014 Author Share Posted June 7, 2014 Yeah, I've seen that issue around and I think that's one of the reasons Josh will be optimizing/working on the controllers. Link to comment Share on other sites More sharing options...
Josh Posted September 12, 2014 Share Posted September 12, 2014 fixed My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts