This question was
closed Jun 08, 2016 at 01:10 PM by
Griffo for the following reason:
Does work as expected, problem was the parent ..
-Vector3.right and AddRelativeForce
Hi, can you use -Vector3.right with AddRelativeForce like -
prefab.GetComponent.<Rigidbody>().AddRelativeForce (-Vector3.right * prefabForce);
As its acting no different than
prefab.GetComponent.<Rigidbody>().AddRelativeForce (Vector3.right * prefabForce);
As I expected the first one to go to it's left?
Comment
Answer by Morgenstern_1 · Jun 08, 2016 at 03:55 PM
Not sure if it makes a difference but could you try:
prefab.GetComponent.<Rigidbody>().AddRelativeForce (Vector3.right * (-prefabForce));
(p.s. Cache that Rigidbody ref! :) )
Follow this Question
Related Questions
How to apply a force at certain point of an object? 0 Answers
Custom touch control stops abruptly! 0 Answers
How do I get objects in front of the player to be blasted away? 1 Answer
Question about having a Rigidbody follow another GameObject via forces. 1 Answer
How to make rigidbody not effect movement while still using it for collisions? 0 Answers