LoginSignup
2
2

More than 5 years have passed since last update.

[WIP] cocos2d-xとC++の便利Tips

Last updated at Posted at 2016-01-12

PhysicsShape を線分で作成する

PhysicsShapeEdgeBox の辺だけを作りたいときとかに使える

使用例

ドキュメント

http://www.cocos2d-x.org/reference/native-cpp/V3.9/d8/d85/classcocos2d_1_1_physics_shape_edge_segment.html

すべての例外をキャッチする

行儀が悪いのは承知

try {
    // 例外が発生しそうなコード
} catch (...) {
    // 例外発生時に実行するコード
}
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2