Reply To: Cube Isn’t moving

Forum Archive Cube Isn’t moving Reply To: Cube Isn’t moving

#26970
Jonathan Gonzalez
Participant

    If you’re using the project files I believe one of the cubes was on a separate layer to show how the layer mask would work. So two of the objects would have the layer to be detected by the raycast. This is to mimic the effect of applying a force to enemy characters or objects, but ignoring other types of objects altogether. Although if you say that the values in the Transform component are changing that is a bit weird. 

    Other common issues that could be the issue is ensuring that the object has a rigidbody and a collider. The rigidbody should have “is Kinematic” unchecked. It’s also possible that the force being applied to the cube isn’t strong enough, so I would really crank up the force and see if it makes a difference. Outside of that I would say it would be a very unique issue.