- Home /
adding sphere colider rotation movment changed
hi guys after added to my object shpere to my object, i notist that the rotation movment that was avilable befor is not happaning, or happaning but really really slow.
any ideas why or how to fix it
Comment
Best Answer
Answer by galshal · Apr 30, 2015 at 07:52 AM
apperently adding the collider is making the object "havier"
i added force and the problem was solved
Answer by xxzekxx59 · Oct 21, 2016 at 09:41 PM
This will help you
<PreBuildEventDependsOn></PreBuildEventDependsOn>
<ProjectReference>
<!-- Target to build in the project reference; by default, this property is blank, indicating the default targets-->
<Targets>$(ProjectReferenceBuildTargets)</Targets>
<!-- Extra item type to emit outputs of the destination into. Defaults to blank. To emit only into this list, set the ReferenceOutputAssembly metadata to false as well. -->
<OutputItemType/>
<ReferenceSourceTarget>ProjectReference</ReferenceSourceTarget>
</ProjectReference>
wait this is better using UnityEngine;
public class PlayerController : $$anonymous$$onoBehaviour { void Update() { var x = Input.GetAxis("Horizontal") Time.deltaTime 150.0f; var z = Input.GetAxis("Vertical") Time.deltaTime 3.0f;
transform.Rotate(0, x, 0);
transform.Translate(0, 0, z);
}
}1
Your answer
![](https://koobas.hobune.stream/wayback/20220613193702im_/https://answers.unity.com/themes/thub/images/avi.jpg)