A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by FSA » Sun Nov 10, 2013 5:00 pm
Hello!
Is it possible to ignore a body (no collision, no interaction, no falling) as long as I want? If so, how? Like:
- Code: Select all
NewtonIgnoreBody(NewtonBody* pBody, bool bIgnore);
Thank you.
-

FSA
-
- Posts: 322
- Joined: Wed Dec 21, 2011 9:47 am
by Julio Jerez » Sun Nov 10, 2013 6:18 pm
Umm I never had that case before.
There are few way that I can think off, but the all require few steps.
if you want I can add two functions like
- Code: Select all
void NewtonBodyRemoveSimulation(body)
void NewtonBodyAddToSimulation(body)
basically it will add or remove a body from the simulation graph,
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by FSA » Mon Nov 11, 2013 4:37 am
Yes that would be nice. Is the collision also ignored?
-

FSA
-
- Posts: 322
- Joined: Wed Dec 21, 2011 9:47 am
by Julio Jerez » Mon Nov 11, 2013 8:34 am
If is remove from the graph yes, it is as if the body does no exit.
is that what you want?
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by FSA » Mon Nov 11, 2013 8:48 am
Exactly

-

FSA
-
- Posts: 322
- Joined: Wed Dec 21, 2011 9:47 am
by Bird » Mon Nov 11, 2013 12:18 pm
Julio Jerez wrote:Umm I never had that case before.
There are few way that I can think off, but the all require few steps.
if you want I can add two functions like
- Code: Select all
void NewtonBodyRemoveSimulation(body)
void NewtonBodyAddToSimulation(body)
basically it will add or remove a body from the simulation graph,
That would be extremely useful for my project too!
-Bird
-
Bird
-
- Posts: 636
- Joined: Tue Nov 22, 2011 1:27 am
by Julio Jerez » Sat Nov 30, 2013 5:20 pm
ok these are complete now.
void NewtonBodyEnableSimulation(const NewtonBody* const body);
void NewtonBodyDisableSimulation(const NewtonBody* const body);
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by FSA » Sun Dec 01, 2013 6:39 am
Great! It works perfectly!
-

FSA
-
- Posts: 322
- Joined: Wed Dec 21, 2011 9:47 am
by Bird » Wed Dec 04, 2013 12:41 pm
Julio Jerez wrote:ok these are complete now.
void NewtonBodyEnableSimulation(const NewtonBody* const body);
void NewtonBodyDisableSimulation(const NewtonBody* const body);
Thanks for adding these!
Is it ok to change a body from Dynamic to Static or vice versa while it's in the Disabled state? Or do I have to to destroy the body and re-add it when changing body type during a running simulation.
-Bird
-
Bird
-
- Posts: 636
- Joined: Tue Nov 22, 2011 1:27 am
by Julio Jerez » Wed Dec 04, 2013 1:22 pm
dynamic body and static body are diffrent leaf classes, that will not be poosible, because one will lose information they onel teh pther haves
-
Julio Jerez
- Moderator

-
- Posts: 12426
- 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 0 guests