Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: heavygunner on September 03, 2018, 08:51:16 PM

Title: [SOLVED] Object not moving after adding rigidbody
Post by: heavygunner on September 03, 2018, 08:51:16 PM
Hi !

Object should move left. Once it hit, It should move right. Again, once hit, Ift will move left.

It is working perfect. But, after added rigidbody, Object not moving after hit ground.

I am following a PlayMaker course. I followed everything, but I don't know why this happening :(

Issue Screen capture >> https://youtu.be/rm2uEoOBuos (https://youtu.be/rm2uEoOBuos)  :o
Title: Re: Object not moving after adding rigidbody
Post by: djaydino on September 04, 2018, 12:55:51 AM
Hi.
It is because rigidbody uses physics and overrides the itween move

You can use for example 'Set Velocity' (every frame)
And you might want to make a parent (cube or capsule) and place the rigidbody there.
You can disable the mesh to make it invisible.
Then also do some constrains on the rotation so it wont roll over.
Then drop in your 'ground enemy'
and do the movement on the parent.

Parenting is a very common thing with character (and other things) as it give a lot more freedom of what to do with them.

What course you where following?
Title: Re: Object not moving after adding rigidbody
Post by: heavygunner on September 04, 2018, 07:49:01 AM
Hi.
It is because rigidbody uses physics and overrides the itween move

You can use for example 'Set Velocity' (every frame)
And you might want to make a parent (cube or capsule) and place the rigidbody there.
You can disable the mesh to make it invisible.
Then also do some constrains on the rotation so it wont roll over.
Then drop in your 'ground enemy'
and do the movement on the parent.

Parenting is a very common thing with character (and other things) as it give a lot more freedom of what to do with them.

What course you where following?

1. Don't get where to add Velocity thing

2. I tried many thing, nothing worked well.

3. I added empty game object and added rigidbody to it. And made it as parent. it worked. But, not working perfectly.

Screen capture : https://youtu.be/l1aJZoKl7PI (https://youtu.be/l1aJZoKl7PI)

I am following this Playmaker course >> http://jonathan-oduffy.thinkific.com/courses/playmaker-101-the-complete-course
Title: Re: Object not moving after adding rigidbody
Post by: heavygunner on September 04, 2018, 08:19:29 AM
Yay !

I added Set Velocity to Parent Empty Object. It's working like a champ  8)

Thank you  :-*
Title: Re: [SOLVED] Object not moving after adding rigidbody
Post by: djaydino on September 04, 2018, 11:10:28 AM
Hi.
Happy to help :)