{"id":1895,"date":"2013-01-11T18:22:43","date_gmt":"2013-01-11T09:22:43","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1895"},"modified":"2013-01-11T18:36:35","modified_gmt":"2013-01-11T09:36:35","slug":"bullet%e3%81%a7addconstraint%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%e3%83%a2%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e6%9c%89%e5%8a%b9%e3%81%ab%e3%81%99%e3%82%8b%e3%81%a8stepsimulation%e3%81%8c%e4%b8%8d","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1895","title":{"rendered":"Bullet\u3067addConstraint\u3059\u308b\u524d\u306b\u30e2\u30fc\u30bf\u30fc\u3092\u6709\u52b9\u306b\u3059\u308b\u3068stepSimulation\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b"},"content":{"rendered":"<p>\u30e1\u30e2\u3002<\/p>\n<p>\u4e0d\u5b89\u5b9a\u3068\u3044\u3046\u306e\u306f\u3001\u300cBullet Error: Overflow in AABB, object removed from simulation\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u95a2\u9023\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u884c\u308f\u308c\u306a\u304f\u306a\u308b\u554f\u984c\u304c\u307e\u308c\u306b\uff08\u6761\u4ef6\u306b\u3088\u3063\u3066\u306f\u983b\u7e41\u306b\uff09\u8d77\u304d\u308b\u306e\u610f\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">btDynamicsWorld *world;\r\n\u2026world\u306e\u521d\u671f\u5316\u51e6\u7406\u7b49\u2026\r\n\r\nbtHingeConstraint *hinge;\r\n\u2026hinge \u306e\u521d\u671f\u5316\u51e6\u7406\u7b49\u2026\r\nhinge-&gt;enableMotor(true);\r\nhinge-&gt;setMaxMotorImpulse(10.0f);\r\n\r\nworld-&gt;addConstraint(hinge);\r\n\r\nworld-&gt;stepSimulation(1.0f \/ 30.0f, 2);  \/\/ \u2190\u3053\u3053\u3067\u554f\u984c\u304c\u8d77\u304d\u308b\u5834\u5408\u304c\u3042\u308b<\/pre>\n<p>\u305f\u3060\u3057\u3001\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u307e\u308c\u3067\u3001\u4e00\u5ea6stepSimulation\u304c\u6210\u529f\u3059\u308c\u3070\u305d\u306e\u5f8c\u306f\u4f55\u5ea6\u547c\u3093\u3067\u3082\u554f\u984c\u306f\u8d77\u304d\u306a\u3044\u3002<\/p>\n<p>\u304c\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u4e2d\u306b\u540c\u69d8\u306e\u65b9\u6cd5\u3067\u5236\u7d04\u306e\u8ffd\u52a0\u304c\u884c\u308f\u308c\u308b\u3068\u305d\u306e\u6b21\u306estepSimulation\u3067\u6bd4\u8f03\u7684\u554f\u984c\u304c\u9855\u5728\u5316\u3057\u3084\u3059\u3044\u3002<br \/>\n\uff08\u3082\u3061\u308d\u3093\u983b\u5ea6\u306b\u3064\u3044\u3066\u306f\u3046\u3061\u306e\u74b0\u5883\u306b\u304a\u3044\u3066\u306e\u8a71\uff09<\/p>\n<p>\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u306f\u3001addConstraint\u3057\u305f\u5f8c\u306b\u30e2\u30fc\u30bf\u30fc\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3044\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e1\u30e2\u3002<\/p>\n<p>\u4e0d\u5b89\u5b9a\u3068\u3044\u3046\u306e\u306f\u3001\u300cBullet Error: Overflow in AABB, object removed from simulation\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u95a2\u9023\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u884c\u308f\u308c\u306a\u304f\u306a\u308b\u554f\u984c\u304c\u307e\u308c\u306b\uff08\u6761\u4ef6\u306b\u3088\u3063\u3066\u306f\u983b\u7e41\u306b\uff09\u8d77\u304d\u308b\u306e\u610f\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">btDynamicsWorld *world;\r\n\u2026world\u306e\u521d\u671f\u5316\u51e6\u7406\u7b49\u2026\r\n\r\nbtHingeConstraint *hinge;\r\n\u2026hinge \u306e\u521d\u671f\u5316\u51e6\u7406\u7b49\u2026\r\nhinge-&gt;enableMotor(true);\r\nhinge-&gt;setMaxMotorImpulse(10.0f);\r\n\r\nworld-&gt;addConstraint(hinge);\r\n\r\nworld-&gt;stepSimulation(1.0f \/ 30.0f, 2);  \/\/ \u2190\u3053\u3053\u3067\u554f\u984c\u304c\u8d77\u304d\u308b\u5834\u5408\u304c\u3042\u308b<\/pre>\n<p>\u305f\u3060\u3057\u3001\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u307e\u308c\u3067\u3001\u4e00\u5ea6stepSimulation\u304c\u6210\u529f\u3059\u308c\u3070\u305d\u306e\u5f8c\u306f\u4f55\u5ea6\u547c\u3093\u3067\u3082\u554f\u984c\u306f\u8d77\u304d\u306a\u3044\u3002<\/p>\n<p>\u304c\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u4e2d\u306b\u540c\u69d8\u306e\u65b9\u6cd5\u3067\u5236\u7d04\u306e\u8ffd\u52a0\u304c\u884c\u308f\u308c\u308b\u3068\u305d\u306e\u6b21\u306estepSimulation\u3067\u6bd4\u8f03\u7684\u554f\u984c\u304c\u9855\u5728\u5316\u3057\u3084\u3059\u3044\u3002<br \/>\n\uff08\u3082\u3061\u308d\u3093\u983b\u5ea6\u306b\u3064\u3044\u3066\u306f\u3046\u3061\u306e\u74b0\u5883\u306b\u304a\u3044\u3066\u306e\u8a71\uff09<\/p>\n<p>\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u306f\u3001addConstraint\u3057\u305f\u5f8c\u306b\u30e2\u30fc\u30bf\u30fc\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3044\u3044\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[443],"class_list":["post-1895","post","type-post","status-publish","format-standard","hentry","category-tech","tag-bullet"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1895"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1895\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}