User Tools

Site Tools


events:getting_started_with_godot_in_3d

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
events:getting_started_with_godot_in_3d [2020/03/30 18:58]
admin
events:getting_started_with_godot_in_3d [2020/03/31 18:04] (current)
admin
Line 1: Line 1:
 +====== Getting Started with Godot in 3D ======
 ==== Notes for everyone ===== ==== Notes for everyone =====
   * Create 3D spatial node, called World   * Create 3D spatial node, called World
Line 107: Line 107:
  velocity.y += jump_power  velocity.y += jump_power
 </​code>​ </​code>​
 +  * Define the floor to fix jumping
 +<code python>
 + if Input.is_action_just_pressed("​jump"​) and is_on_floor():​
 + velocity.y += jump_power
 +
 + velocity = move_and_slide(velocity,​ Vector3.UP)
 +</​code>​
 +  * Lock the mouse to the window
 +<code python>
 +func _ready():
 + Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
 +
 +func _process(delta):​
 + if Input.is_action_just_pressed("​ui_cancel"​):​
 + Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
 +</​code>​
 +
 +  * I think that's as far as we'll get in the first session, I'll make a start on [[Getting started with Godot in 3D Part 2|part two]] though.
  
 ==== Notes for me ===== ==== Notes for me =====
Line 121: Line 139:
     * F to focus on object, O to focus on origin     * F to focus on object, O to focus on origin
     * right mouse, WASD     * right mouse, WASD
 +  * Ctrl + Left click for inline help
 +
 +==== Further reading/​viewing ====
 +  * This tutorial is based on [[https://​www.youtube.com/​channel/​UCdU9e4eNsJif0rBrBiYRb5g|Code with Tom'​s]] Youtube series [[https://​www.youtube.com/​watch?​v=UV-bhtb3734|Make and FPS in Godot]]. ​ Part two is [[https://​www.youtube.com/​watch?​v=Y_2oiLjOx54|here]].
 +  * [[https://​www.youtube.com/​watch?​v=49awsu1VJbo|Building 3D levels]]
  
events/getting_started_with_godot_in_3d.1585591111.txt.gz ยท Last modified: 2020/03/30 18:58 by admin