I was wondering how would I do a ray cast with p2.js as I was using this guide World - p2.js and this method won’t seem to work with playcanvas.
bump
No ‘bump’ needed on the same day.
I was wondering how would I do a ray cast with p2.js as I was using this guide World - p2.js 1 and this method won’t seem to work with Playcanvas. My project: PlayCanvas 3D HTML5 Game Engine (jump script)
I was trying to do a raycast and I got an error, you can see the error when you launch the project. A Dumb Idea | Editor (playcanvas.com)
I’m sorry if I’m being annoying but I can’t figure this out and I need help on this.
Unfortunately I have no experience with p2.js. Is there no documentation for this somewhere?
there is but it doesn’t seem to have support for Play Canvas
I checked your project, but I don’t see anything in your script that looks like a raycast.
In which script and which line do you do the raycast?
I switched to a hittest and it’s in jump-ballon
Alright, but this topic is about raycast that is not working.
The raycast is set but what shoud i do with the info it give in console.
I don’t know.
May I ask why you want to use p2.js?
ammo is very…" floaty?" like whenever I apply an impulse whenever it’s 2d or 3d it just feels like it hovers down, and when I do fix that the scales for forces change wildly and I just don’t feel like dealing with it.
ok so I found the issue but I don’t know how to fix it. It says b.getAABB is not a function so I used the dev console to make it somewhat readable. The function is in fact defined so I don’t know what to do. PlayCanvas 3D HTML5 Game Engine
I was wondering if anyone found a way to raycast in p2 yet??? or at least a way to make a character jump