Search found 2 matches
- Mon Sep 12, 2022 8:20 am
- Forum: Support and Development
- Topic: a way to let kinematic collider collide with static stuff?
- Replies: 3
- Views: 1760
Re: a way to let kinematic collider collide with static stuff?
I don't think so, not without modifying Box2D and recompiling Löve anyway. If you don't want a dynamic body to be affected by gravity, you can use Body:setGravityScale (set it to zero). You can also make the bullets sensors (Fixture:setSensor) if you just need basic collision detection. That works,...
- Sat Sep 10, 2022 5:40 pm
- Forum: Support and Development
- Topic: a way to let kinematic collider collide with static stuff?
- Replies: 3
- Views: 1760
a way to let kinematic collider collide with static stuff?
I set the type of bullets to be 'kinematic',ground and walls 'static'.I know that kinematic bodies only collide with dynamic bodies,is there a way to change that?Or if I set bullets to be dynamic,they immediately drop into the ground when I shoot,I set the mass of them to be 0,it turns out that does...