I am using libGDX for hobby Game Development,I am using two stages one is for graphics and one is for box2d world with debugDraw, every box2d fixtures debugDraw well with their graphics but I cant debugDraw a raycast!, how can I easily achieve that?
THANK YOU.
does libGDX box2dDebugRenderer renders ray?
198 Views Asked by smiling_buddha At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in LIBGDX
- Creating a random item generator in java,to use in a libgdx project
- Installing Google play service to Libgdx game
- Admob slows down my game - LIBGDX
- Popup with scrollable area
- Removing sprite when Touched
- How do you generate specific random number?
- How to render things expressed in seconds
- Comparison error for isometric sorting
- Does the game engine allow me to intergarte native android code
- LibGDX - load and process texture asynchronously
- Calculation position of a Vector between two others
- Libgdx: Objects creating other objects
- Drawing individual pixels LibGDX
- How to remove Sprite/Object from ArrayList?
- how to get control-c to kill only the running process and not sbt itself?
Related Questions in BOX2D
- timing issues while creating replay of game (ghost for racing)
- Cocos2d : Shooting a ball in the direction of the mouse click/Touch
- adobe pro cc (AS3) not recognizing box2d classpath
- I have an Array of 2 objects, when I use a for loop, both of the object gets the change that only one of them should have
- Libgdx Android game Crash after short time
- Set up wraparound effect in libGDX with Box2D
- Java/Android - libGDX/box2d - body has low velocity
- AndEngine remove physics body from screen
- libGDX Stage input handling
- Andengine Collision Not detected
- Android libgdx scene2d - button disappears
- SKEffectNode shader bug
- Ambiguous reference to b2FilterData
- Delete all box 2D bodies from world in libGDX
- Which Box2D-like physics engine parameters need pixel conversion?
Related Questions in PHYSICS
- Calculate energy for each frequency band around frequency F of interest in Python
- sampling 2-dimensional surface: how many sample points along X & Y axes?
- How do I make a decaying oscilating function in python?
- Make two physics objects not collide but do detect collisions in Unity
- Bounce a ball from one point to another - Vector and Acceleration
- cocos2d-x physics nodes slide along other
- trouble getting collision point
- Python pendulum
- Best language for battery modelling?
- Tracing out the motion of a double pendulum in gnuplot (and gif conversion)?
- Parallelizing pairwise gravitational force calculation with OpenMP in Fortran 90
- Scenekit PhysicEngine follow rolling ball
- 2D orbital Physics model showing strange behaviour
- Verlet / Euler Integration is inaccurate
- Which Box2D-like physics engine parameters need pixel conversion?
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 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?
DebugDraw does not render RayCasts as they are not an object in the box2d world. It is more like a query and does not persist.
But you could use your starting vector and the the point of the RayCastCallback that is going stop the raycast to draw a line via DebugRenderer.line(a, b). Of course, if you want this line to show up more than one frame you have to store your vectors somewhere.