-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the rigid body skin to null ( temporary ) trow an exception ( unmanged ) #25
Comments
ok, you can change this first, I will add this to dev branch.
|
I Li, after some attempts whit the class ( object ) serializations and clone with this code ( this code works but i haven't time to test where and when ... ) Class ObjectDuplicator: package GamesMakerClass.Utils
} |
After adding the OBJECT type to the away AWD2 parser, and after :) some object cast errors .... ( i need time to study them ) You Decide .... Wow Li ... it's hard ;) Sry and thanks ... |
Hi Li i have a new problem for you ... :)
Class AWPCollisionObject
Original code:
public function set skin(value:ObjectContainer3D):void
{
//
m_skin = value;
_originScale.setTo( m_skin.scaleX, m_skin.scaleY, m_skin.scaleZ );
}
Modified code:
public function set skin(value:ObjectContainer3D):void
{
//
m_skin = value;
//
if( m_skin != null )
_originScale.setTo( m_skin.scaleX, m_skin.scaleY, m_skin.scaleZ );
}
This is because in Games Maker the extra mesh class object contains all the physics object properties ( and more ). Whe these property are exported, this duplicate all the extra properties ( one, standard for the mesh, and one referenced by the body ) and in my case this cause a wrong result when the mesh are imported ... And because the object are the same before it is saved and after i need to set this properties to null ....
Ok Li ?
The text was updated successfully, but these errors were encountered: