Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下を使用すると、mmVelik.x と mVelik.y に負の値が表示されることがあります。誰も理由を説明できますか??
b2Vec2 mVelik = ballBody->GetLinearVelocity();
値を負にすることができない場合、オブジェクトは一方向にしか移動できません。x の値が正の場合、速度は右向きになり、負の場合は左向きになります。y 値 (ダウン/アップ) についても同様です。