Sign in to follow this  
kiklop133

Matter sprite origin

Recommended Posts

Hello, I'm wondering if there is way to change offest on collider.

var sprite = this.matter.add.sprite(600, 300, 'diamond');
sprite.setOrigin(0.1, 0.60);
sprite.setAngle(90);

The sprite's offset is changed correctly but collider is on same place as before.

 

Thanks for further reply.

collideroffset.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.