A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by pr0t0z » Mon Jun 04, 2012 4:48 am
I need to rigidly attach two objects, from two separate classes non-derived. The problem here is that i cannot access the NewtonCollision from each object as it is a protected member of NewtonGDObject, so i can't directly use NewtonCreateCompoundCollision i guess.
I've been using other strategies to attach both elements such as forcing two joints at the same point to constraint the movement, however this does not seem to be the most optimal solution.
Is there a way to overcome this problem, like perhaps compound NewtonBodies or something, as they are accessible.
(This might seem a really dumb problem, but i can't overcome it. Can someone give me a hint?)
Cheers,
Carlos Faria
-
pr0t0z
-
- Posts: 15
- Joined: Wed May 30, 2012 11:57 am
by pr0t0z » Mon Jun 04, 2012 5:44 am
Implemented, an accessor to NewtonCollision in CNewtonGDObject.
May not be the best way to deal with it, but it works.
-
pr0t0z
-
- Posts: 15
- Joined: Wed May 30, 2012 11:57 am
by Julio Jerez » Mon Jun 04, 2012 9:34 am
in core 300, you cna add and remove sub shape in a compound.
you can also manipulate the matrix an dscale of each child shape.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by pr0t0z » Sat Jun 16, 2012 6:14 pm
I have my full solution implemented based NGD version 2.30 (is this core previous to 300 ?). If not do you think it will be too troublesome to upgrade it? I'm using NGD, to implement something for my MsC degree, so not much time available to do it. If there isn't many conflicts i can give it a go. What do you think by your experience?
(Btw i'm using a pre-compiled version, and i'm also a total newb on this)
Thx again for any feedback, Cheers
Carlos Faria
-
pr0t0z
-
- Posts: 15
- Joined: Wed May 30, 2012 11:57 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest