Search found 770 matches
- Mon Mar 20, 2023 7:53 am
- Forum: Support and Development
- Topic: Physics engine: how do you simulate top speed?
- Replies: 4
- Views: 695
Re: Physics engine: how do you simulate top speed?
As always - the best answer is simpler than you think. Thanks!
- Sun Mar 19, 2023 3:33 am
- Forum: Libraries and Tools
- Topic: Resolution Solution [library]
- Replies: 54
- Views: 73999
Re: Resolution Solution [library]
I changed the 3 to a 2 and now it scales as expected. I didn't even notice that setting (I copy/ pasted without checking) so now I'll read up on what that does. Thanks!
- Sat Mar 18, 2023 4:52 am
- Forum: Support and Development
- Topic: Physics engine: how do you simulate top speed?
- Replies: 4
- Views: 695
Physics engine: how do you simulate top speed?
I have a physics body that I move around using impulses on the x and y axis. Positive X impulse moves the body to the right and negative X impulse moves the body to the left. With mass applied, I can get a nice seamless acceleration effect thanks to the hard work the Box2D does for me. If I make up ...
- Sat Mar 18, 2023 3:59 am
- Forum: Libraries and Tools
- Topic: Resolution Solution [library]
- Replies: 54
- Views: 73999
Re: Resolution Solution [library]
Intentionally bumping this thread as I constantly have this problem which demonstrates I'm not understanding something. I use this code on my desktop (1920 x 100) and it works fine: function love.load() res.init({width = 1920, height = 1080, mode = 3}) res.setMode(1920, 1080, {resizable = true}) ......
- Tue Mar 07, 2023 11:00 am
- Forum: Support and Development
- Topic: Geometry/math question
- Replies: 8
- Views: 1456
Re: Geometry/math question
I think you're 1/2 way to some sort of gamified mouse clicker with those two examples.
- Mon Mar 06, 2023 9:14 pm
- Forum: Support and Development
- Topic: Geometry/math question
- Replies: 8
- Views: 1456
Re: Geometry/math question
I'm thinking of starting a top down kingdom building project and I'd like a spawn system where events, good and bad, will spawn in a certain proximity from each village. For example, I need to spawn a group of hostile raiders but where? I'd spawn it further away from secure villages but closer to ne...
- Mon Mar 06, 2023 4:05 am
- Forum: Support and Development
- Topic: Geometry/math question
- Replies: 8
- Views: 1456
Re: Geometry/math question
I suggested 3 points because orientation matters. For example knowing the distance between two points can determine spacial relativity (that a thing?) But I wouldn't know if the point is "above" or below. If you get my meaning. I didn't say this in OP but there might be a 5th point introdu...
- Sun Mar 05, 2023 3:15 am
- Forum: Support and Development
- Topic: Geometry/math question
- Replies: 8
- Views: 1456
Geometry/math question
Not sure how to explain this: Given three known points on a plane, I need to determine the x/y of a fourth point. The only information I have on the fourth point is the distance to three other points. Arbitrary example: Known points x/y Point A: 12, 5 Point B: 21,11 Point C: 17 15 Point D: ?, ? Dist...
- Thu Mar 02, 2023 7:54 am
- Forum: General
- Topic: Grid in game
- Replies: 5
- Views: 1520
Re: Grid in game
Or
you then have to translate that information to a grid in love.draw()
Code: Select all
local person = {}
person[1].x = 50
person[1].y = 50
person[2].x = 100
person[2].y = 20
...
- Thu Mar 02, 2023 7:28 am
- Forum: Support and Development
- Topic: how to test the colour of a pixel?
- Replies: 7
- Views: 1425
Re: how to test the colour of a pixel?
Yeah - performance is something I'll need to check and ensure I don't scan too many pixels too quickly