SpiderPig Posted July 11, 2018 Share Posted July 11, 2018 Can the gravity direction be changed on a per object basis rather than per world? I'd like to change the direction for the character controller. Would it be possible to turn off the world gravity and add forces to the controller object, or will this mess things up? ? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted July 11, 2018 Share Posted July 11, 2018 Not sure about individual gravity but you could also use the jump variable of the SetInput command. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted July 11, 2018 Author Share Posted July 11, 2018 That could be an option, although I'm more thinking of a character walking on the ground and on the wall I'm experimenting at the moment but had no luck so far. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted July 11, 2018 Author Share Posted July 11, 2018 This is probably more a question for Josh, but does anyone know how to use the CharacterController class by itself and not by using SetCollisionType() on an entity? I'm trying to create a controller and update forces on it myself, like so; //Create auto b = Model::Box(); auto cont = CharacterController::Create(b); //Update cont->addForce(-1.0f,0.0f,0.0f); Quote 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.