Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / What is the best way to translate 2D physics to ISO

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Apr 2017 01:53
I want to have a game that uses 2D physics to manage a Top Down Playing field. I then want to project that to an ISO view where the camera is at say 45o to the plane.
Essentially shrinking the Y axis. How would i go about that?
programming is ace
User Banned
Posted: 19th Apr 2017 12:42
I have been developing a 3D game engine designer with Top down view

See if this meets your requirements

https://forum.thegamecreators.com/thread/219414

Maybe not, but will give you some ideas.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Apr 2017 03:21
I'm not sure that's what i'm after. I would like to do it in 2D using the 2D physics commands. I'll have a look at your editor though
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Apr 2017 22:23
bump.
programming is ace
User Banned
Posted: 20th Apr 2017 22:43
You talking about planes here - so is it 3D or 2D (Sprites) you working in - Give us more info
programming is ace
User Banned
Posted: 20th Apr 2017 22:46
Just read Subject.2D rotated as such... You got that bit

How about just using SetSpriteSize to halve the Y
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Apr 2017 23:00 Edited at: 20th Apr 2017 23:01
It's all 2D
I'm thinking i have to create a top down scene off screen and somehow translate all the movement/collision and project it onto an ISO surface by scaling down all the y-coordinates.
I was hoping someone would confirm that or suggest another way
programming is ace
User Banned
Posted: 20th Apr 2017 23:04
Give us an example game that we already know exist in the world to want you want achieve.

We can then see how that game does by visual and then I / we can work it out

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Apr 2017 23:11
This is the view. Notice the ovals around the players. They act like bumpers. Note that they are NOT circles (As a result of the ISO perspective)
programming is ace
User Banned
Posted: 20th Apr 2017 23:14
Got ya...

Bear with I / us


Subbuteo was great
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Apr 2017 23:29
Can't you just make a bunch of elliptical physics shapes?

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
programming is ace
User Banned
Posted: 20th Apr 2017 23:34
Phealax makes things so obvious...

Cheers
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Apr 2017 23:35
Can i do that with SetSpriteShapeCircle() or do i need to use SetSpritePolygon()? Also the movement of the ball is affected because the scene is shrunk along the y-axis
programming is ace
User Banned
Posted: 20th Apr 2017 23:46
player x,y cords -

color = makecolor(0,0,0)

drawellispe( x# of each object minus a few x# coords , y# of each object minus a few y# coords , x#+size of the image of sprite of each object Plus a few x# coords y#+size of the image of sprite of each object plus a few y# coords ,

sizeofspritex, sizeofspritey/2, color, color color, color,0)

Will make a ellipse around the object player.
programming is ace
User Banned
Posted: 21st Apr 2017 00:16
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Apr 2017 00:25
Is that creating a physics shape?
programming is ace
User Banned
Posted: 21st Apr 2017 00:31
argh

send us sample code you already got or don't you have any and want us to make it all for you

Sample code please.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Apr 2017 00:38
It's ok. I'll sort it myself. Thanks for the help
programming is ace
User Banned
Posted: 21st Apr 2017 00:41
Its just difficult to interpret what effects you want. We have just assumed what the should be...

Is it that circle you want?

If so, then that would work on 2D
programming is ace
User Banned
Posted: 21st Apr 2017 00:43
ISO - then all I suggest is try that code out for 2D (work) and then rotate 45o
programming is ace
User Banned
Posted: 21st Apr 2017 00:46
Tell us..

Is it just that circle you want under the player is ISO view?

Yes - then that was quiet simple


No - tell us more

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Apr 2017 00:49
It's not the drawing i'm interested in. It's the physics
At this point i think i'll try making a physics scene off screen and then translating it to the iso scene on screen.
thanks for all your help
programming is ace
User Banned
Posted: 21st Apr 2017 00:55
we must be totally misunderstood by your requirements or you haven't explained it fully - as both Phealax and I have totally misunderstood what you trying to achieve

So

find a game on you tube that meets your requirements - think that maybe better to allow me at least to see what you need to do in your project.

Are you taking the idea of another games physics or making one up for yourself


find a game already out there which you want to achive in physics and surely these guys will get back to you
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Apr 2017 01:06
Yes. I think i am very poor at explaining myself. Sorry to have wasted your time
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 21st Apr 2017 09:04
Make the ellipse object as mentioned above, then use the 2d physics command to SetSpritePolygon() (Which will create an elliptical physics object.) Ignore the ISO style and treat the whole game as fully top down for the purposes of collisions etc.
Signature removed by mod because it's larger than 600x120... please resize and try again.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Apr 2017 22:39
Thanks you mobiius. I'll give that a try

Login to post a reply

Server time is: 2024-04-25 11:43:47
Your offset time is: 2024-04-25 11:43:47