Search found 1388 matches

by badidea
Jul 20, 2019 21:30
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

but the whole structure is a bit of a mess. I think that Vincent van Gogh's paintings are a bit of a mess but some folk have parted with some serious money to get their hands on them. One thing is for sure and that is dodicat is not a John Constable. <smile> Yes, they both all three might have prod...
by badidea
Jul 20, 2019 21:19
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

I'm not camping yet, so I made a start: const as single PI = 4 * atn(1) const as single PPM = 3 'pixels per meter const SW = 800, SH = 600 screenres SW, SH, 32 width SW \ 16, SH \ 8 type sgl2d dim as single x, y declare constructor declare constructor(x as single, y as single) declare operator cast ...
by badidea
Jul 20, 2019 19:35
Forum: General
Topic: Squares
Replies: 6723
Views: 383680

Re: Squares

Still trying the impossible?
E.g. 11011 can be 1, 1, 01, 1 or 1, 10, 1, 1
by badidea
Jul 20, 2019 12:06
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

I was in error, bypassing sleep during a drag. It happens to the best of us. Graphics are not my strong point so it is probably not much coming from me but I reckon that code is one of the best that I have seen. I will make a point of studying it to better my understanding of FB's graphic's capabil...
by badidea
Jul 20, 2019 11:28
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

Conclusion form Joshy's link:
I was thinking too complicated. I thought that I had divide the thrust force in 2 parts (for linear and angular acceleration). But this does not seem necessary.
by badidea
Jul 19, 2019 11:23
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question


Looks like a useful resource. I will be camping for the next 2 weeks, so don't expect much coding progress from me, but I can at least read this on my phone and make some notes.
by badidea
Jul 19, 2019 0:39
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

However if there was a rocket engine on the block it would turn with the block and thus change the direction of the force in absolute space? So to test this you would need to have a rocket of some kind (water bottle with vinegar and baking soda dissolved in water?) and a low friction setup such as ...
by badidea
Jul 18, 2019 22:43
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

Here is a general strike. I have used the property of mass of a disc and moment of inertia of a disc. ... Looking at you code, but I is a bit hard to follow. Not written for a beauty contest :-) linearimpulse = impulse * Cos(a) / mass angularimpulse = impulse * Sin(a) / anginertia You assume that l...
by badidea
Jul 18, 2019 22:33
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

The borg cube is of course 3d and a lot more complicated. You are allowed to squeeze to borg cube to a height of nearly nothing :-) Hitting a circle is the same at any point. I am not hitting the circle. I have attached engine which shortly applies thrust in y-direction. The angle you hit a square ...
by badidea
Jul 18, 2019 22:01
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

I cannot see what BasicCoder2's last post is adding more to the conversation than the second post did; or am I missing something? Neither did I. As I don't see a real difference between the flying saucer and the borg cube, I expect both to move in y-direction only while rotating. (assuming the thru...
by badidea
Jul 17, 2019 21:50
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

BasicCoder2 wrote:
badidea wrote:Nice demo, but you skip most of the physics involved (forces, mass, inertia). Direct change of rotation and speed. Which is fine for a game, but not what I am looking for (in my game).

Maybe you need a 2d physics engine?

That is an option, but I prefer to grok the physics and implement it myself.
by badidea
Jul 17, 2019 21:34
Forum: Game Dev
Topic: Tetris vs Mario (Work in progress)
Replies: 2
Views: 17372

Re: Tetris vs Mario (Work in progress)

For those you missed it, the 'final' result (with Mario as a horse) can be found here: viewtopic.php?f=17&t=27438&start=90#p260499
Unfortunately, the competition organizer was apparently so disappointed with the result that he ran away.
by badidea
Jul 17, 2019 17:16
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

... Nice demo, but you skip most of the physics involved (forces, mass, inertia). Direct change of rotation and speed. Which is fine for a game, but not what I am looking for (in my game). In space (without gravity) the center is the center of the object COO your spaceship but for example on earth ...
by badidea
Jul 16, 2019 21:51
Forum: Game Dev
Topic: Physics question
Replies: 48
Views: 899

Re: Physics question

Somehow it seems counter-intuitive that if the thrust is in the y-direction only that the resulting linear motion can be in a different direction. If it be would be a billiard ball and the arrow a cue (stick) with friction between them then motion like in docicat's code seems correct. I'll think som...
by badidea
Jul 16, 2019 20:08
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 268
Views: 34199

Re: FLTK-C-1.3.3 for FreeBASIC

... Mostly simple things like closing a window can drive you mad and it takes days, because it is mentioned nowhere.. Not sure if this is a question or remark, but in my code containing a main window and setting window, I just use the small 'x' (often top-left) of the window manager :-) More seriou...

Go to advanced search