-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3D Movement on local axis #1162
base: main
Are you sure you want to change the base?
3D Movement on local axis #1162
Conversation
Thank you for submitting an extension. Why do you need JavaScript for this extension? About the rotation, I think it would need acceleration feature to worth an extension. Otherwise, it can be done by using built-in actions and |
Thank you for checking. The feature of this extension is that it uses local axes. For example, it will be easier to control an aircraft that can move and rotate 360 degrees, and the bullets fired from it. The reason I used Javascript is that it is inefficient to reproduce functionality that Three.js already has in place using events. |
I see. Do you think there is other cases where the actions can be useful? Because if it's mostly used for spaceships/planes movement, I guess it could be easier for users to have a full behavior that handles acceleration and maximum speed. |
This extension can also be used when the user wants to have different speed performance for each axis of the object. I created this thinking I need to provide basic actions to the user. |
That sounds fair. I'll wait to review the 3D force extension, because I guess that the translate actions could be one of the way to add forces. |
This extension provides behaviors that allow you to translate and rotate 3D objects along local axes.
Add the "Movement 3D on local axis" behavior to your 3D box or 3D model. The following actions will then be available:
Example
https://editor.gdevelop.io/?project=https://raw.githubusercontent.com/PANDAKO-GitHub/GDevelop-examples/3D-Movement-on-local-axis-Example/examples/3d-movement-on-local-axis/3d-movement-on-local-axis.json