Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
[Help] Physics fixtures are shifted 1 pixel to the bottom and right.
Post Flair (click to view more posts with a particular flair)
Author Summary
SpaceMuppet is in help
Post Body

The fixtures of all physics objects are shifted one pixel down and to the right. I found this out by drawing them with physics_world_draw_debug.

I dont know what to do, i have googled this problem but cant find other with the same problem. I tried to go into every object's collision shape and then draw it one pixel above and to the left from where i really want it to be and this does work, but it seems wrong to do it that way.

fix_solid = physics_fixture_create()
  physics_fixture_set_box_shape(fix_solid, 8, 8);
  physics_fixture_bind_ext(fix_solid, id, 0, 0);
  physics_fixture_delete(fix_solid);

When i bind a fixture to the center of my solid object with above code,(with the sprite origin centered) it still doesn't work. Unless i use:

physics_fixture_bind_ext(fix_solid, id, 1, 1);

I am using Gamemaker studio 1.4.

Author
Account Strength
80%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
270
Link Karma
134
Comment Karma
116
Profile updated: 3 days ago
Posts updated: 10 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago