Kinematic and dynamic body: interaction?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 10, 2013 1:57 pm

Oh I see, This is a resilent bug.

Ok I fixed, see if it good now.
I did no test by changing me system setup, I am a work and I do no wnat to risk anything here.

if if still does not work I will test by setting teh reginal stuff at home.
But I think this time will be OK.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Sweenie » Fri May 10, 2013 2:04 pm

Yeah, getting some mixed results here. :(
The setlocale works fine on my XP machine but still getting the crash on my Win 7 machine, but not while debugging, only when running the exe without debugging.
The only way I got it to work all the time is to prevent wxWidgets from setting the locale in the first place.
In its appbase.cpp file.
According to wxWidgets docs you should be able to disable locale support setting a flag to 0 but I'm getting compiling errors when setting the flag.
// Recommended setting: 1 but may be disabled if you are writing programs
// running only in C locale anyhow
#define wxUSE_XLOCALE 0
Sweenie
 
Posts: 503
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: Kinematic and dynamic body: interaction?

Postby Enclave » Fri May 10, 2013 2:13 pm

I test it, it is ok now! :D :D :D :D :D :D

I think, to avoid this bug, you must remember about this locale issue if you want to load and parse the demo data somewhere else in the code.

Sweenie

According to wxWidgets docs you should be able to disable locale support setting a flag to 0 but I'm getting compiling errors when setting the flag.


Your solution may be the best.


Well, now it a time for continue with the rest of the Player controller modifications.))) :)
Enclave
 
Posts: 81
Joined: Wed May 01, 2013 6:00 am

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 10, 2013 2:13 pm

Sweenie di you update in teh last few monutes?
if that does no work then I will try that, teh reaosn I do no whe to try that is because in Linux WxWidget is part of eh system,(sort off)
you can be installed by do the sinaptic thing. so there the bug may still exists,

The dScene is no a util library, afet I get all the demos I will go back to teh Phsyiocs editor, an dteh dScene will be teh toll for loading and saving
complete physics effects, of all kind.
kind of what Havok hkx or Collada files are.
this is why the format look more complex that it need to be for a plain graphic file.

If the last chnage does no work I think the best is to just build wxWidget this liek you say.
// Recommended setting: 1 but may be disable if you are writing programs
// running only in C locale anyhow
#define wxUSE_XLOCALE 0

Please try sync to SVN again one more time, let us see if the last change fix it.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Sweenie » Fri May 10, 2013 2:21 pm

Ah, missed your update.
I synced to SVN again and now it works. :D
Sweenie
 
Posts: 503
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 10, 2013 2:34 pm

awesome, now we can go back to the player controller that triggere the bruhaha.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Enclave » Fri May 10, 2013 2:49 pm

Yeah, between that we have found a bunch of bugs and created a new project for VS2012)))

I think, a work on engine features is the very useful))) 8)
Enclave
 
Posts: 81
Joined: Wed May 01, 2013 6:00 am

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 10, 2013 3:10 pm

Ok now we I going to do is to add the ability fo te hpleay copntroll to handle teh velocity of oethe dynamics bodies and I beleiev that will take care of everything. I will work on that tomorrow.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 10, 2013 3:31 pm

Enclave do you think you can list a set of rules that you wodul kie teh player to obay when he encounter a dynamics body.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Enclave » Fri May 10, 2013 5:38 pm

The major features was a discovered at the beggining of this topic, here i will complete it to one list.

1) When a player moves into the dynamic body, then there is a collision, and the bodies can not penetrate each other. The player body can move the dynamic body. (solved)
2) When the dynamic is moving (colliding with) at the player, then the collision is happens. Sometimes we want tohandle it (perhaps this has already been implemented, i just don't know).
3) The Player must react when it a collides with dynamic body. For example: When the player is on a hanging bridge, the bridge can move the player while it moving. Another example, when player stay on over the dynamic body (like dynamic body as a boxes or kitchen table), when the player move, the dynamic body must react. (waiting to be solved)

I think, the some part of this features must be an option. For FPS game we need a one set of features, and for third look game we need of another set. (my game project is a third look view game).

At the moment are the main features that I needed, well, we'll see))
Enclave
 
Posts: 81
Joined: Wed May 01, 2013 6:00 am

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 17, 2013 12:33 pm

I am back on this now.
I made the changes so that the player can do all these tree seems.

for that ta player have to have the nothing of Inertia, that way when he inveterate with other bodies it is his mass combine wit the mass of the other body that produce the interaction.

It is almost all working by there is still a bug, so the code I c\heck in still no ready. I finish tonight.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Fri May 17, 2013 6:25 pm

Alright! I think I have a very good one now.
sync to SVN and try it out. It thonk si does everything you listed.
the only one change in your size is that you have to give a player some mass.
this I beleieve is cool because it strengh is a function of its mass.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Enclave » Sat May 18, 2013 2:32 pm

Yes, it works! Thanks, Julio, now we have a good player body interaction with other bodies :D

Now I can using these features in my project, for now, i can create the dynamic bodies with any form, make collision and it will interact with player!

I am test the demo and found some issues. When the player is standing at a body near of its edge, he is becomes stuck. Must i record a small video for discovering this issue?
Enclave
 
Posts: 81
Joined: Wed May 01, 2013 6:00 am

Re: Kinematic and dynamic body: interaction?

Postby Julio Jerez » Sat May 18, 2013 2:58 pm

Yes I think what that is, I believe this is because the integration when the player touch a vertical edge, his velocity is modified by not integrated.
the high level control have to deal with that, I saw it after I check in but I has not fix it yet, I did no have a good test to reproduce it.

but please make a video, maybe this is a different Bug.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Kinematic and dynamic body: interaction?

Postby Enclave » Sat May 18, 2013 3:27 pm

Ok, here it is:

The player is stuck. He is cannot move anymore, not possible to control it. I can only make a jump.
(you can see that player is jumping once, i did it.


]
Enclave
 
Posts: 81
Joined: Wed May 01, 2013 6:00 am

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron