I'm French so excuse me for my bad English. I'm creating an RPG game, and so I've some questions.
First, I control a character, the collisions are good, but I've a problem. I don't want this character to rotate on X and Y axis, because he has to stay on his feet, and not on his head... I hope you understand

Second question : I want to be able to scale objects in physic world. I know I have to use ConvexHullModifier, but like before, I don't know how to do. I test this code, but it don't works :
- Code: Select all
void CPhysConvex::SetScale(CVector3f& vScale)
{
CMatrix4f temp_matrix;
NewtonConvexHullModifierGetMatrix(NewtonBodyGetCollision(m_pBody), &temp_matrix.matrix[0]);
temp_matrix.scale(vScale);
NewtonConvexHullModifierSetMatrix(NewtonBodyGetCollision(m_pBody), &temp_matrix.matrix[0]);*/
}
I have searched on the web, and on the french sites, but I didn't find something to help me.
I hope you have understood what I meant, it'es not easy for me to talk in english.
Thank you in advance,
Supermael.