Page 1 of 1

Single Entity Linear Motor not working

Posted: Sun Apr 17, 2011 11:07 pm
by Shevy
So a while back I had posted that I needed to change the mass dynamically so that the player can move and object upon interaction, but it will not affect other sliding objects
and that is where you recommended single linear motors.
http://www.bepu-games.com/forums/viewto ... f=4&t=1077 <- thats the post

Now I have upgraded to 15.2 and things are breaking. First, sliding objects which the player is moving can get stuck into one being held down by a single entity motor furthermore, sometimes they will start flying in a random direction after colliding with the player they are very confusing and although their target position is always the correct spot they enjoy moving in a direction at random times. Futhermore the motor seems to be a spring that when another entity hits it, it goes out and then spring forths back into its target position instead of firmly holding its ground.

the linear motor is being created and set into servomechanism mode.

Thank you,
Shevy

Re: Single Entity Linear Motor not working

Posted: Mon Apr 18, 2011 12:03 am
by Norbo
Sorry, I can't really visualize what is going wrong (or more specifically, with that information, I don't have any theories to explain the given behavior). More information, a sample case, or video would help.

Re: Single Entity Linear Motor not working

Posted: Mon Apr 18, 2011 1:15 am
by Shevy
Sorry about that I am a little underweather so I didnt realize how abstract my problem was.
but here is a short video of the problem at hand.
http://www.youtube.com/watch?v=bRVQP7lJzGc

When the object is interacted with the player can move it side to side and when he is done with it or it is out of range it will fall until it hits the ground and then add its single entity motor to the world with the correct target position.

As you can see the two big bugs where that when one that is being moved collides with one that is locked things get weird. Also although it is harder to reporduce sometimes landing on an object or interacting with an object will cause it to go off in a random direction as seen in the video.

Also after looking at the masses that my level designer has set all the objects except for the tall cabinet(the one at the bottom half of the level) has a mass of one. The cabinet apparently has a mass of 50.

Re: Single Entity Linear Motor not working

Posted: Mon Apr 18, 2011 1:29 am
by Shevy
Um... So First I would like to apologize for using your forums to organize my thoughts and then finding the answer to the problem after hitting submit, and second it seems that the player himself also had a very high mass yes that was the very problem. I have yet to run any more extensive tests with this but my unbalanced masses seemed to be the problem. It also seems to fix the elastic issue between an object beign pushed and an object being being locked, as well as with the player.

Thank you again for the quick response and all your hard work :)

Shevy