Jump to content

Gravity Direction


SpiderPig
 Share

Recommended Posts

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? ?

Link to comment
Share on other sites

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);

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...