hi i'm trying to create a cloth simulation. i have created the particle and now i want to create a constraint between them. i have my constraint class but i've got some errors which i didn't understand. can anyone help?? thanks
Constraint.cpp:5: error: expected identifier before '*' token
Constraint.cpp:5: error: prototype for 'Constraint::Constraint(Particle*, int*)' does not match any in class 'Constraint'
Constraint.h:7: error: candidates are: Constraint::Constraint(const Constraint&)
Constraint.h:13: error: Constraint::Constraint()
Constraint.h:11: error: Constraint::Constraint(Particle*, Particle*)
Hi yeah that was a silly mistake I corrected it but have other errors too.
Constraint.cpp:5: error: 'Partcile' has not been declared
Constraint.cpp:5: error: prototype for 'Constraint::Constraint(Particle*, int*)' does not match any in class 'Constraint'
Constraint.h:7: error: candidates are: Constraint::Constraint(const Constraint&)
Constraint.h:14: error: Constraint::Constraint()
Constraint.h:12: error: Constraint::Constraint(Particle*, Particle*)
scons: *** [Constraint.o] Error 1
void Particle::Draw()
{
glPushMatrix();
m_pos.Translate();
//get an instance of the VBO primitives for drawing
ngl::VBOPrimitives *prim=ngl::VBOPrimitives::Instance();
Constraint.cpp: In constructor 'Constraint::Constraint(Particle*, Particle*)':
Constraint.cpp:7: error: expected primary-expression before 'p1'
Constraint.cpp:7: error: expected `;' before 'p1'
Constraint.cpp:8: error: expected primary-expression before 'p2'
Constraint.cpp:8: error: expected `;' before 'p2'
Constraint.cpp:9: error: 'class Particle' has no member named 'getposition'