IrrNewt irrlicht\newton framework >> SVN access
hi all, I have made my character collision with a whole .irr scene. However, the rigid body position of my character was not in the center of mesh. I know there is some bodyoffsetfromnode method to adjust. but i'm quite not sure about the bodyoffsetfromnode method. there is no specification about this. such as bodyoffsetfromnode.rotation and translation. any one can advice the result for these methods?
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
i wanted to use irrnewtinmy project soi included just the headers and when compiling an error came out in matrix4.h in this line
line 106:
here error:
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: expected `,' or `...' before '*' token|
here is the rest of the errors:
line 106:
Code: Select all
int NewtonMaterialCollisionContactProcess(
const NewtonMaterial* material,
[i]const NewtonContact* contact);[/i]
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: expected `,' or `...' before '*' token|
here is the rest of the errors:
- C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: expected `,' or `...' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: ISO C++ forbids declaration of `NewtonContact' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|129|error: expected `,' or `...' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|129|error: ISO C++ forbids declaration of `NewtonRagDollBone' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|18|error: ISO C++ forbids declaration of `NewtonContact' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|18|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|21|error: expected `)' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|24|error: ISO C++ forbids declaration of `NewtonContact' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|24|error: `NewtonContact' declared as an `inline' field|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|24|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|25|error: expected `;' before '}' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp||In constructor `irr::newton::IMaterialContact::IMaterialContact()':|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|20|error: class `irr::newton::IMaterialContact' does not have any field named `newton_contact'|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp|27|error: `NewtonContact' has not been declared|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp|27|error: ISO C++ forbids declaration of `contact_to_set' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp||In constructor `irr::newton::IMaterialPairAndContact::IMaterialPairAndContact(NewtonMaterial*, int*)':|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp|28|error: no matching function for call to `irr::newton::IMaterialContact::IMaterialContact(int*&)'|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|17|note: candidates are: irr::newton::IMaterialContact::IMaterialContact(const irr::newton::IMaterialContact&)|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|20|note: irr::newton::IMaterialContact::IMaterialContact()|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|32|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|32|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|37|error: `NewtonRagDoll' has not been declared|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|38|error: `NewtonRagDollBone' has not been declared|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|41|error: ISO C++ forbids declaration of `ragDoll' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|41|error: ISO C++ forbids declaration of `parentDollBone' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|53|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|53|error: `NewtonRagDoll' declared as an `inline' field|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|53|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|56|error: expected `;' before "IRagDollBone"|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|89|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|89|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|90|error: ISO C++ forbids declaration of `NewtonRagDollBone' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|90|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|98|error: expected `)' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|103|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|103|error: `NewtonRagDoll' declared as an `inline' field|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|103|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: expected `;' before "inline"|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: ISO C++ forbids declaration of `NewtonRagDollBone' with no type|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: `NewtonRagDollBone' declared as an `inline' field|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: expected `;' before '*' token|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|109|error: expected `;' before "irr"|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp||In constructor `irr::newton::IRagDollBone::IRagDollBone()':|
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|99|error: class `irr::newton::IRagDollBone' does not have any field named `n_bone'|
C:\Users\omar shaaban\Work\Veda\main.cpp||In function `int rf(int)':|
C:\Users\omar shaaban\Work\Veda\main.cpp|35|warning: converting to `int' from `const irr::f32'|
C:\Users\omar shaaban\Work\Veda\main.cpp|36|warning: converting to `long int' from `const irr::f32'|
C:\Users\omar shaaban\Work\Veda\main.cpp|37|warning: converting to `long int' from `const irr::f32'|
C:\Users\omar shaaban\Work\Veda\main.cpp|38|warning: converting to `long int' from `const irr::f32'|
C:\Users\omar shaaban\Work\Veda\main.cpp|39|warning: converting to `long int' from `const irr::f32'|
C:\Users\omar shaaban\Work\Veda\main.cpp|40|warning: converting to `long int' from `const irr::f32'|
C:\Users\omar shaaban\Work\Veda\main.cpp|44|warning: converting to `long int' from `double'|
C:\Users\omar shaaban\Work\Veda\main.cpp|45|warning: converting to `long int' from `double'|
C:\Users\omar shaaban\Work\Veda\main.cpp|46|warning: converting to `long int' from `double'|
||=== Build finished: 39 errors, 9 warnings ===|
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
I can only guess since I did not look at this frameowrk's code. But it sounds as if the direct matrix access that was removed in Irrlicht 1.2 or so makes the NewtonContact struct to fail. Hence the rest of the errors. The access can be easily fixed by changing matrix.M to matrix and some similar changes.
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
hybrid wrote:I can only guess since I did not look at this frameowrk's code. But it sounds as if the direct matrix access that was removed in Irrlicht 1.2 or so makes the NewtonContact struct to fail. Hence the rest of the errors. The access can be easily fixed by changing matrix.M to matrix and some similar changes.
i fixed that..that was easy
the problem is with bufferLOD thingy and an error in join.hpp
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
another problem is what is the delta time did irrnewt set for newton engine update i mean what is the maximum numbers update per second (as when i make it depend on fps sometimes irr newt give me stupid calculations and ofcourse when i make it frame independent with const framerate of 60fps it works fine)
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 18
- Joined: Fri Sep 11, 2009 4:31 am