Work in Progress
Re: Work in Progress
Hi Chilli,
This would be really good stuff to make a pool or snooker game.
Asimov
This would be really good stuff to make a pool or snooker game.
Asimov
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
Re: Work in Progress
@_@ First I spend like 2 hours reading a huge article about rigid body behaviour, convincing me I don't need to know math at all to read it. Then without much introduction jumps right into newtons law of restitution... And I didn't understand at all what was going on.
Next I find a site with only little text, but with more interactive programs that visually explain the theory and I instantly understand whats going on : -P
I guess I learn better from interactive and visual things than theory. I did my billiard game by taking a few swings on my mini pool and wrote the code based on what I saw. Without looking up any actual physics laws (originally wanted to take in mass and advanced friction and energy loss, but then just made them in a much simpler way).
Getting too late again. Maybe I'll make some angry balls game later. Like angry birds, just ...balls. That are angry. And building demolishing, gonna be awesome.
Next I find a site with only little text, but with more interactive programs that visually explain the theory and I instantly understand whats going on : -P
I guess I learn better from interactive and visual things than theory. I did my billiard game by taking a few swings on my mini pool and wrote the code based on what I saw. Without looking up any actual physics laws (originally wanted to take in mass and advanced friction and energy loss, but then just made them in a much simpler way).
Getting too late again. Maybe I'll make some angry balls game later. Like angry birds, just ...balls. That are angry. And building demolishing, gonna be awesome.
ʕ •ᴥ•ʔ
Re: Work in Progress
Just got home about an hour ago, but I already got up a small physics demo. Right now there are no collision or anything, but the program will spawn a plank. When you hold down the left mouse, it will spawn a rubber band from the top middle of it, so you can mess around with the plank physics.
The world values are still a bit messed so it's not realistically proportional, or what ever it's called.
Anyways... What do you think?
PS. the inertia is too big, I know. Sucks the rotation up in an instant. Here's zero gravity with no world friction:
The world values are still a bit messed so it's not realistically proportional, or what ever it's called.
Anyways... What do you think?
PS. the inertia is too big, I know. Sucks the rotation up in an instant. Here's zero gravity with no world friction:
ʕ •ᴥ•ʔ
Re: Work in Progress
Pretty kewl Lux, are ya going to expand on this more?
Re: Work in Progress
Of course. I'm only at the basic movement calculations of the tutorial so far. Later (if I manage to) there will be other objects, wall collision and I'll try to figure out better ratios for all the constants and so on. As well as multiple collisions and more realistic collision response. I'll just try as good as I can.
I'm wondering tho, what this "work in progress" of chili was/is : -P Something similar?
I'm wondering tho, what this "work in progress" of chili was/is : -P Something similar?
ʕ •ᴥ•ʔ
Re: Work in Progress
Lux I try make a billard == your kkk but i´m not happy =(
but i try kk
your collision is good rs
i use in this test somethings that i leran with chiulli,
all off c++ i leraned in this videos
i will try make now a angry bird style in c++
but i try kk
your collision is good rs
i use in this test somethings that i leran with chiulli,
all off c++ i leraned in this videos
i will try make now a angry bird style in c++
- Attachments
-
- First Test with Chili DirectX Framework.rar
- XD Build
- (24.91 KiB) Downloaded 222 times
Re: Work in Progress
Cool demo LuX. Forces are good for things like gravity and attraction (electromagnetic), but for collisions you're going to need impulse.
I'm just going to make it simulate collisions between polygons of any shape/mass, balls, and walls. It will calculate their centers of gravity and their moments of inertia automatically. When I get that sorted out, I'll fill them with scanline (might go back to wireframe if it looks better), I'll add motion blur, stereo positional sound for the collisions, and particle effects. And a paralax starfield in the background. Then I'll refactor the code one last time to make it pretty and upload it for you guys to look at. It's all done in classes, so it might be interesting for you guys to see what a full on C++ object oriented app looks like.LuX wrote:Of course. I'm only at the basic movement calculations of the tutorial so far. Later (if I manage to) there will be other objects, wall collision and I'll try to figure out better ratios for all the constants and so on. As well as multiple collisions and more realistic collision response. I'll just try as good as I can.
I'm wondering tho, what this "work in progress" of chili was/is : -P Something similar?
Chili
Re: Work in Progress
Sounds cool.
This tutorial explains pretty well the math behind simple but realistic collision. It's the one I'm currently following. It assumes you to code everything yourself and to know a little bit about vectors beforehand, but the explanation is pretty good.
http://www.myphysicslab.com/collision.html
This tutorial explains pretty well the math behind simple but realistic collision. It's the one I'm currently following. It assumes you to code everything yourself and to know a little bit about vectors beforehand, but the explanation is pretty good.
http://www.myphysicslab.com/collision.html
ʕ •ᴥ•ʔ