x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

VR Fighting Game help

Hey, I am trying to make a VR fighting game like gorn, Creed etc. I tried using an animation based system but it just feels off now I am trying to make a physics based system which will use the skeleton's physics.

What I am currently doing is I start simulating physics after the motion controller begins to overlap with the ai actor.

The problem: The enemy AI keeps on falling. I can hit it on the ground but it just falls in a ragdoll like fashion after the first punch.

Question: How can I make it so the enemy AI keeps on standing after the first punch? (How can I simulate physics and have the AI stand on its feet)

Thanks in advance!

Product Version: UE 4.21
Tags:
more ▼

asked Jan 03 '19 at 03:17 AM in VR

avatar image

SABAN124
1 1

avatar image vikivega2020 Jan 03 '19 at 03:55 AM

Hi

This is not an exact solution, however it will give u an idea. Create a variable for health and set a value for e.g., 100.

On one punch you reduce a value of 10. Until it becomes zero, disable the gravity of the enemy, so that it will not fall. Make a condition that if the health is 0, then enable the gravity of the enemy and add a fall animation, so that it looks natural while falling.

You can find the gravity option under physics. Hope this helps !

avatar image SABAN124 Jan 03 '19 at 04:00 PM

Hey thank you for the answer :) I have implemented your solution and it works great with one problem. The character is kind of floating in place when gravity is disabled. Is there any way I can make it so its a little more grounded?

avatar image vikivega2020 Jan 04 '19 at 03:41 AM

Hi

You can work on the Physics tab, See the link below,

https://docs.unrealengine.com/en-us/Engine/Physics/PhysicsBodies/Reference

You can disable Simulate Physics so that it will not affect by gravity. Or you can try freezing the position or rotation on a particular axis.

Cheers !

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

thanks for your answers! I ended up using the physical animation component (Pretty buggy atm) Here's a great tutorial for anyone trying to do it in their own game: https://www.youtube.com/watch?v=6pG9SZQ0o7w

more ▼

answered Jan 06 '19 at 02:52 AM

avatar image

SABAN124
1 1

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question