# Fractional Angled offset

**URL:** <https://forum.kirupa.com/t/fractional-angled-offset/287480>\
**Category:** flash\
**Created:** [May 1, 2009, 7:18pm UTC](https://forum.kirupa.com/t/fractional-angled-offset/287480 "2009-05-01T19:18:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![substance](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@substance](https://forum.kirupa.com/u/substance)\
**Post date:** [May 1, 2009, 7:18pm UTC](https://forum.kirupa.com/t/fractional-angled-offset/287480/1 "2009-05-01T19:18:01Z")

</div>

So i’m used to dealing with projection pretty often where the formula is:

```auto
x += Math.cos(angle) * offsetX;

```

But I’m working on a project in Box2D where units are in meters (aka a lot smaller) and it seems if the offset is anything smaller than one the formula messes up. Anyone know a workaround for this?

\*Note: this value is later translated into pixels so every bit counts.
