Chipmunk and Unity2D

Chipmunk2D Bindings for the Unity3D engine

Chipmunk and Unity2D

Postby Jool » Tue Jan 07, 2014 9:36 pm

Hello,

Happy new year to everybody.

I would like to know how Chipmunk2D for Unity integrates with the new sprite system in Unity 4.3.

If I use Chipmunk2D can I use the Physics Layer in Unity to control if objects should collide with each other or not?

Also I would like to know if Chipmunk2D for Unity is still in development and if new features are going to be released in the future.

Thanks a lot.
Jool
 
Posts: 2
Joined: Tue Jan 07, 2014 9:31 pm

Re: Chipmunk and Unity2D

Postby Steve Oldmeadow » Wed Jan 08, 2014 9:00 pm

@Jool - there is currently no integration with the 2D features in Unity 4.3 as the current release (1.0.3) predates Unity 4.3.
Steve Oldmeadow
 
Posts: 17
Joined: Tue Jul 16, 2013 10:27 pm

Re: Chipmunk and Unity2D

Postby Exploding Rabbit » Wed Jan 15, 2014 10:57 am

Personally I think Chipmunk2D in Unity is superior to Box2D in pretty much every way except performance on some platforms. Sprite rendering is completely separate from physics, so there is no reason for that to be integrated. Chipmunk's physics layers are not integrated with Unity's layers, and that is a good thing. With Chipmunk, you get 32 layers completely for physics instead of sharing them with other things like Unity does.

Personally, I think Chipmunk2D in Unity is the best thing ever, and I think it should be marketed more so that more people know how much better it is than Unity's current implementation of Box2D. I'll let the developer answer your other question.
Exploding Rabbit
 
Posts: 14
Joined: Wed Dec 04, 2013 3:31 am

Re: Chipmunk and Unity2D

Postby Jool » Thu Jan 16, 2014 10:12 pm

Hi,

Thanks you guys for your answers.

So to be clear, with Chipmunk you can create Physics and decide which ones collide with each other like you do normally in Unity?

http://docs.unity3d.com/Documentation/C ... ision.html

If that's the case I guess I would give Chipmunk for Unity a go.

I am also wondering, if I use Chipmunk and create a PolygonShape Collider for a Sprite, is the collider going to take the shape of the sprite automatically?

Thanks a lot.
Jool
 
Posts: 2
Joined: Tue Jan 07, 2014 9:31 pm

Re: Chipmunk and Unity2D

Postby Steve Oldmeadow » Fri Jan 17, 2014 7:58 am

@jool - regarding layers have a read of this section in the Chipmunk manual. http://chipmunk-physics.net/release/Chi ... -Filtering

As for your second question, no you can't auto generate a collider from a sprite using the current version of Chipmunk.
Steve Oldmeadow
 
Posts: 17
Joined: Tue Jul 16, 2013 10:27 pm


Return to Chipmunk2D for Unity

Who is online

Users browsing this forum: No registered users and 1 guest