Weird Custom Collision Behavior
Rainbros
Member Posts: 124
I've been trying to get custom collision to work for my pinball game but WEIRD things are happening. I am using PhysicsBodyEditor. For one thing, after I change the collision of my flipper actor from rectangle to custom, my actor starts rotating from a different point (without changing anything else). Also, sometimes my actor will fly off for no reason other than the presence of a collide rule (without actually colliding with the other actor). This clearly is not the correct behavior.
Is anyone else experiencing odd things? @BlackCloakGS @dgackey @stevej Are these known issues, or should I submit a bug report?
Comments
Are you changing the center of mass inside the actor? This is currently broken.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@Lost_Oasis_Games No. I noticed that wasn't working so I set it back to default.
Here is a sample file demonstrating the issue. Notice how turning on the collide rule inside the flipper actor causes the flipper to move for no reason and it also changes the point of rotation.
Yes this is a bug. I submitted a sample project for the staff to look at.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Appears that a collision is occurring before all the actors have been set up. Trying to track down why, but my guess is that it's just an accident that it's worked with the CoM at 0.
@stevej in the case of the file I submitted here, why on earth would the custom collision cause the rotation point (same as CoM, as far as I'm aware) of my actor to change to something other than 0,0? Weird. It's like it's ignoring the transparent part of the image.