Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 2-Zons |
I’m new to GODOT coming from Unity. I’ve never used python so just learning the scripting style.
I would like to make a cannon. The cannon will rotate and elevate. When fired I would like to create an instance of a node (cannon ball) and give it an impulse based on the relative position of the cannon.
Specifically:
Syntax for creating an instance of a node?
Syntax for applying impulse to said node based on another node’s position and rotation?
I’m sure this is pretty basic stuff but I’m also just learning to navigate GODOT’s documentation resources as well.
Thanks.
Have you tried looking at any of the demos? Maybe one of those has an example. The one for a Kinematic Character may be helpful.
Ertain | 2019-05-31 04:27