0 votes

hi all,

i'm making a beat-em up game and i have a player who when punching objects (bins, oil barrels etc) will cause the object to break and disperse into the air and disappear . similar in games like final fight (see GIF link):

https://giphy.com/gifs/finalfight-oil-barrel-y737lW0vgxVMIUZjrY

I'm trying to figure out what method i.e kinematicBody3D or rigidbody3D is best to simulate an object that is hit and is pushed away and disappears. My first thought was using RigidBody3D . can someone guide me to a tutorial explaining the method or better show a script example as a start. thanks

Godot version v3.4.4 stable.official(419e713a2)
in Engine by (46 points)

There is a similar feature in 3d, but I don't think so in 2d. Use object's "spritesheet"

1 Answer

0 votes

Why are You going 3d ? You realize Final Fight is entirely 2d ? Illusion of depth is provided by Y-sort and Z indexing. Applicating rigid physics for such simple task is total overkill too. Just code some gravity and random impulse force, so the shrapnels bounce from their original position.y.

Unless You are making 3d brawler game, like Virtual Cop or DieHard

by (7,309 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.