@Leonidas I used the code you gave in the example and it told me
getEularAngles is undefined
Try then debugging your this.PCOLLSION
property, since itâs undefined. If you can provide the full code of that method I may be able to know more.
ok Thanks
Make sure to give the docs a look when you get errors, thatâs where you can find the correct names for the engine API.
ok thank you
Check using the browser console if the angle is correctly received, itâs the number that you are sending.
how do I access the browser console?
Thatâs something you will have to learn eventually, itâs not specifically for PlayCanvas only but a skill you should have when doing web dev.
Try searching online for âhow to debug using the browserâ and you will plenty of materials. It may take a while but be patient and learn how to do that. It will help you resolve many of the problems you had in this thread.
Which button are you referring to?
like fo jumping so if you press space then it will apply a force and start a cool down where you cant press it again
So the simplest way to do this is using a timeout, much like the first person movement engine example does it:
https://playcanvas.github.io/#camera/first-person.html
If you jump up, you are allowed to jump again only after 0.5 sec has passed. Here is the relevant piece of code:
I need code to have the playerâs markerâs rotation match the rotation of the player themself.
@Leonidas You have been helpful in the past. (the code you gave me last time didnât work it just made the character disappear)
I merged the thread as they asked about player rotation earlier in this thread.
I recommend learning how to debug in the browser. Itâs an incredible useful skill to help solve issues that you run into https://developer.playcanvas.com/en/user-manual/scripting/debugging/