Hi, I'm currently implementing a flying npc with hkpCharacterRigidBody, before this i used a simple sphere-shaped phantom, which worked, but was a bit jerky. Now i try to unify all npc types under the flag of the rigidbody charctrling. What I did: - sethkpCharacterRigidBodyCinfo::m_maxSlope to PI/2 -hkpCharacterInput::m_characterGravity.set(0,0,0); - calledhkpCharacterRigidBody::checkSupport() With theese the npc moves, unsupported (slowly) in the air, but only horizontaly. Tryed NOT to callcheckSupport(), and always fillhkpCharacterInput myself, always giving hkpCharacterOutput::m_supportedState = hkpSurfaceInfo::SUPPORTED; This made the movement faster, but no going up or down. I discovered that the Y part of velocity always 0 in the output (hkpCharacterOutput). The hkpCharacterStateManager has both theHK_CHARACTER_ON_GROUND andHK_CHARACTER_IN_AIR states. So any help is welcome.
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.