Skip to content

Change the rigid body skin to null ( temporary ) trow an exception ( unmanged ) #25

@LucaEstiva

Description

@LucaEstiva

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions