Physical rewrite
Posted: Mon Nov 26, 2007 1:55 pm
Shorah.
A small update on current work
A while ago I wrote that I found out what the region problem was, and could now fix it.
Also, today, we put out a recent PyPRP version as a stable one.
The main reason for this is what I'm currently working on.
The entire physics system is getting a rewrite.
Besides figuring out the plHKPhysical object to about 90% of total understandability, (and the remaining 10% are though vague, still workable), and rewriting accordingly, I thought it would be time to get rid of those bloody confusing col_flags[0-5] properties.
The structure of col_flags4 and col_flags5 has recently been discovered, col_flags3 turns out to be two virtually unused booleans according to my research, leaving only col_flags0, col_flags1 and col_flags2 (which make up those 10% of not-fully understood plHKPhysiscal code).
And of those three fields, we have now discovered which settings we use most, and for what they are usable.
This calls for a new structure, which I'm currently implementing.
What should you expect:
- Setting collision type no longer through a col_type property, but through the [bounds] button in the logic properties panel.
- Setting movable objects with mass, no longer through logic properties, but through the [actor] button and settings in the logic properties panel in blender.
- A few more settings added to alcscript, and some more settings by default
- No friction by default (through that oh so handy 'no friction' flag), unless you actually specify friction.
- Finally those regions will work right, as they are now scaled correctly as well...
Now, this will mean that the old col_type and col_flags[0-5] properties won't work anymore.
And though I will in all probability provide a migration script, not everyone might want to update their blend files so soon, to comply with the new format.
So, that's where pyprp-stable-0.5 comes in. It's a recent copy, that still supports all the old ways of doing things, for those that don't want to update their ages yet. Once you want to update, grab the latest subversion, and have fun
Trylon
A small update on current work
A while ago I wrote that I found out what the region problem was, and could now fix it.
Also, today, we put out a recent PyPRP version as a stable one.
The main reason for this is what I'm currently working on.
The entire physics system is getting a rewrite.
Besides figuring out the plHKPhysical object to about 90% of total understandability, (and the remaining 10% are though vague, still workable), and rewriting accordingly, I thought it would be time to get rid of those bloody confusing col_flags[0-5] properties.
The structure of col_flags4 and col_flags5 has recently been discovered, col_flags3 turns out to be two virtually unused booleans according to my research, leaving only col_flags0, col_flags1 and col_flags2 (which make up those 10% of not-fully understood plHKPhysiscal code).
And of those three fields, we have now discovered which settings we use most, and for what they are usable.
This calls for a new structure, which I'm currently implementing.
What should you expect:
- Setting collision type no longer through a col_type property, but through the [bounds] button in the logic properties panel.
- Setting movable objects with mass, no longer through logic properties, but through the [actor] button and settings in the logic properties panel in blender.
- A few more settings added to alcscript, and some more settings by default
- No friction by default (through that oh so handy 'no friction' flag), unless you actually specify friction.
- Finally those regions will work right, as they are now scaled correctly as well...
Now, this will mean that the old col_type and col_flags[0-5] properties won't work anymore.
And though I will in all probability provide a migration script, not everyone might want to update their blend files so soon, to comply with the new format.
So, that's where pyprp-stable-0.5 comes in. It's a recent copy, that still supports all the old ways of doing things, for those that don't want to update their ages yet. Once you want to update, grab the latest subversion, and have fun
Trylon