Ninja Character - Dynamic gravity for characters & objects

Where does a SetRotation of NinjaCharacter by ground normals take place in c++?