About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
2D Pysics
Author Message
HappyWeekend Offline
Member

Post: #1
2D Pysics
Hi there,

is 2D Physics possible in Esenthel ?

I am new to Esenthel and wanted to try sth like PingPong.
For now I check collision with cuts and set the Ballspeed *=-1.
However, I want to add some Physics.
In the Esenthel Tutorials I see only 3D Physics with Actors and its create function.
But it is not working with Rects and Circles. Ty for answer. wink
12-22-2015 10:10 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #2
RE: 2D Pysics
EE does not have a purely 2d physics engine, but you should be able to overcome that by locking the axis' of the objects.
12-22-2015 11:00 PM
Find all posts by this user Quote this message in a reply
georgatos7 Offline
Member

Post: #3
RE: 2D Pysics
Hey, just access the actor's freezeposX, Y or Z method so that you can constrain its movement on just the 2 axis that you need and then proceed in applying the force, velocity, etc in any way that you want. It will practically be the same thing as 2D physics.
(This post was last modified: 12-23-2015 01:00 AM by georgatos7.)
12-23-2015 12:59 AM
Find all posts by this user Quote this message in a reply
HappyWeekend Offline
Member

Post: #4
RE: 2D Pysics
OK thank you. I will try this.
And now I found a discussion about this topic ^^. 2D games using Esenthel

Also I thougt about a c++ lib wich implements 2D physics for further projects, and found Box2D and Chipmunk2D.
I think it shouldnt be a problem to use this in Esenthel. Anyone some experience with it ?
12-23-2015 01:23 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #5
RE: 2D Pysics
you should be able to integrate either of them, I have no personal experience with them but doubt it would cause any problems.
12-23-2015 01:29 PM
Find all posts by this user Quote this message in a reply
Post Reply