A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by faymon » Sun Dec 31, 2017 1:12 pm
Hello
I have created a class with a Joint and i receive an error when i call NewtonDestroyJoint in the destructor.
Is it important to use this function or can i make a default destructor (which works) ?
Thanks
-
faymon
-
- Posts: 6
- Joined: Sun Dec 31, 2017 12:59 pm
by Julio Jerez » Sun Dec 31, 2017 1:25 pm
Are you using a dCustomJoint?
You only need to call the destructor.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by faymon » Sun Dec 31, 2017 1:34 pm
No i use the basics Joints like BallJoint or SliderJoint
Thanks for your answer so i can use my class serenely
-
faymon
-
- Posts: 6
- Joined: Sun Dec 31, 2017 12:59 pm
by Julio Jerez » Sun Dec 31, 2017 1:44 pm
Can you try using the joint library instead?
This have lots more functionality,
and they are cpp objects already.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by faymon » Sun Dec 31, 2017 1:49 pm
How can i use this class(es) ?
-
faymon
-
- Posts: 6
- Joined: Sun Dec 31, 2017 12:59 pm
by Julio Jerez » Sun Dec 31, 2017 3:33 pm
they are all on the dCustomJoints library.
has you run the demos? check out the standard joints demo.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by faymon » Mon Jan 01, 2018 10:39 am
Thanks for your help and last question : What are the Custom****Actuator ?
-
faymon
-
- Posts: 6
- Joined: Sun Dec 31, 2017 12:59 pm
by faymon » Mon Jan 01, 2018 11:26 am
Back to the first problem : the lib I contribute to by creating a Joint Class can't use the cpp classes of Newton.
So Is it important to use NewtonDestroyJoint ?
-
faymon
-
- Posts: 6
- Joined: Sun Dec 31, 2017 12:59 pm
by Julio Jerez » Mon Jan 01, 2018 1:04 pm
The reason I say this is because the internal joint has no been maintained for over 10 years already.
each time a change is made to teh engine I only added teh changes to make it compiled. so they are no as develop as the one in teh dCustom library, all the power of teh engine can only be realized when using the dCustom joint library.
any reason why you can no use the joint class. you are using cpp already.
Custom actuator and joint that emulate servo and step motors.
that's another functionality of the custom joint, you can subclass from them an make your own.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Julio Jerez » Wed Jan 03, 2018 6:13 pm
Yes, but that's 13 years old information that apply to version 1.5 of then engine.
The engine has change a lot since then and those joints has been substituted by the dCustomJoint library which provide all the functionality and a lot more.
If you where able to link to Newton, you shoud be able to link to dCustomJoint
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 15 guests