Just starting playing with the 3d features.
How would i take the scrolling pan example and convert it to 3d?
So you grab the screen to move it, but have the camera rather than facing directly down, be at a slight angle.
https://editor.construct.net/#open=touch-panning
This is tricky but I think this isn't actually working. As soon as a 3D camera is involved Touch.X returns NaN and this thing breaks. So I think right now 3D camera breaks the touch plugin somehow?
With 3D the mouse plugin and probably touch will give you a point on the 3D ground plane. This isn’t always useful though.
Typically you’d want to add a 2d layer and grab the mouse/touch from that so you get standard 2d values.
Develop games in your browser. Powerful, performant & highly capable.
R0J0 saves the day once more. Here's a working example
wackytoaster.at/parachute/3dPanning.c3p
The UI layer is set to 2D and it's where I grab the touchX from.
So I assume I got NaN because I kinda clicked into the infinite 3D void?
Yea, I’m pretty sure that was where the NaNs come from.
Glad the idea works
Great example, thanks very much.