Newton update on Android

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Newton update on Android

Postby Slick » Mon Feb 15, 2016 3:52 pm

I'm just starting to troubleshoot this so I'm not sure of the cause yet but randomly it seems that I don't get call backs from the world update. I did define _DG_USE_THREADEMULATION (I'm going from memory so the define is probably spelt differently)

Is there anything else I should be checking?
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Newton update on Android

Postby Julio Jerez » Mon Feb 15, 2016 5:01 pm

what call back you do not get?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton update on Android

Postby Slick » Mon Feb 15, 2016 5:09 pm

I'm using the ogrenewton class and sometimes I get call backs from the world update and other times it never calls.

What defines should I use for an Android build. Should I use _DPOSIX_VER also? The fact that it works sometimes seems like some threading issue even though I used DG_USE_THREADEMULATION.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Newton update on Android

Postby Julio Jerez » Mon Feb 15, 2016 5:53 pm

you will not get collision call back if the contacts of a pair do not change from frame to frame.
the only call back that is guarantee to happen every frame is the force and torque.

could it may be your bodies are in equilibrium and you expect the call back to be called.?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton update on Android

Postby Slick » Tue Feb 16, 2016 6:54 am

It is actually the onbeginupdate and onendupdate callbacks. I just add one sphere but sometimes nothing happens. Probably 80% of the time the sphere just hovers in the air. The other 20% of the time it falls. This is based on restarting the app.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Newton update on Android

Postby Julio Jerez » Tue Feb 16, 2016 7:45 am

what file contain those callback:s onbeginupdate and onendupdate
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton update on Android

Postby Slick » Tue Feb 16, 2016 9:09 am

OgreNewtonWorld.h

I'll keep fiddling with settings.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now


Return to General Discussion

Who is online

Users browsing this forum: Julio Jerez and 3 guests