3D Gravity Shift Platformer Prompt
From Wikiprompt, the free prompt encyclopedia
3D Gravity Shift Platformer Prompt A technical prompt for creating a 3D puzzle-platformer with gravity rotation mechanics, including a JavaScript code snippet and camera interpolation requirements.
Prompt ContentSave
Build a 3D platformer using Three.js and Cannon.js. The world is a cube-shaped maze. When the user presses 'R', rotate the world.gravity vector by 90 degrees.
JavaScript
// Gravity rotation logic
world.gravity.set(0, -9.82, 0); // Default
function rotateGravity() {
let newG = new CANNON.Vec3(-wor...
Sign in to see the full prompt
Sign In to ContinueUsage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
Talk
0 comments