I have rectangular player in top down game. I want to find which side(to be specific top of rectangle ) of rectangle is hit by other game objects.
How to find if top of rectangle collided or not in box2d
59 Views Asked by JustStarted At
1
There are 1 best solutions below
Related Questions in BOX2D
- Can't resolve undefined reference to box2D C++
- Box2D not simulating
- How to create a non-standard shape in a box2d python. Namely, a figure in the shape like Г, T, Z, like in Tetris?
- Is it possible to implement interaction pybox2d and pygame
- sync of body and sprites for animation?
- How to know which side of a ChainShape is being collided with?
- Why is this object not recognized?
- Box2d body's velocity slows down without any force applied
- Why does my installation of box2d fail even though I already have swig installed
- Box2d body, preservation of b2BodyDef, b2Shape, and b2FixtureDef
- error while installing pip install gymnasium[box2d]
- Ground Box doesn't work in LibGdx and Box2D with Scene2d
- LibGDX Displaying UI elements in game world
- LibGDX camera.project() is not working properly
- My LibGDX game project is rendering only the background image
Related Questions in BOX2DWEB
- Drawing collider boundaries (box2d-wasm). Error: Cannot construct a b2Draw, no constructor in IDL
- Get X and Y coordinates from collision in Box2dweb (JavaScript)
- How to find if top of rectangle collided or not in box2d
- javascript games ThreeJS and Box2D conflicts?
- Node.js app is working slow after 24 hours, what might be the reasons?
- Revolute joint with box2d web, wheel not turning around own axis
- Finding collision point outside of contact listener in Box2D
- Unexplained HTML5 lag on AMD processors
- collision two sprite dynamic and static and stop moving
- Box2D Cocos2d JS
- Implementing box2d debug draw with pixijs?
- How to use ApplyForce with box2DWeb
- Box2dWeb bodies not colliding
- Node.js Box2dWeb error caused by require()
- Three.js keeps displaying the same geometry
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you want to distinguish between collisions for different parts of your game object, use different fixtures for those parts. So if you want to distinguish between top and bottom for example:
These could also be sensors (so no physics) as an overlay for your other physics fixtures.