Questions tagged [playcanvas]

PlayCanvas is an HTML5, JavaScript, WebGL game engine

PlayCanvas is an HTML5/JavaScript/WebGL game engine

18 questions
0
votes
1 answer

2d screen velocity to 3d world velocity while camera is rotated

I am creating a small demo game where you can rotate around earth and launch satellites into space. But I have some trouble with the calculations. You can drag the mouse from the platform to a direction. This is the direction you shoot the satellite…
SaschaDeWaal
  • 149
  • 2
  • 15
0
votes
2 answers

How to monkey patch a recursive function

I'm using a library (playcanvas) that exposes a function clone() that is called recursively for all the nodes in a hierarchy. If I monkey patch the function to execute some additional code, this will be executed multiple times. Instead, I need to…
mcmorry
  • 132
  • 1
  • 7
0
votes
2 answers

playcanvas 2D fallback for bad or no WebGL support

Is there any known implementation of a 2D canvas fallback for the awesome playcanvas game engine? The idea is that the system should test rendering performance during the loading process in WebGL vs Canvas 2D, and fall back to Canvas 2D in case it…
jacmkno
  • 1,189
  • 11
  • 25
1
2