cocos2d / cocos2d-objc

Cocos2d for iOS and OS X, built using Objective-C
http://www.cocos2d-objc.org
Other
4.07k stars 1.16k forks source link

3D transforms. #789

Open slembcke opened 10 years ago

slembcke commented 10 years ago

This has come up within the team and on the forums a few times. Almost consistently, the only thing people miss about the remove CCCamera and CCGrid features were using them to make 3D flipping animations.

My thought has been to make a node that can have a 3D transform. All it really needs is to store a GLKMatrix4 and override [CCNode transform:] Add some convenience setters for simple axis aligned flipping, and I think it will make people quite happy.

The culling in the renderer should already support 3D transforms correctly.

Birkemose commented 10 years ago

I think this would make a lot of people happy. Giving menus a bit of perspective and flipping cards, would be cool features. LIke you said, it really is only a few lines of code and some convenience methods ... give or take :)

slembcke commented 9 years ago

This has been partly implemented in 4.0 already since everything is based on 4x4 transforms now. The other part we need is to expose methods to perform the transforms easily.