- Home /
Question by
$$anonymous$$ · May 21, 2015 at 06:17 PM ·
c#collisionphysics
Rigidbody Can't Remove Force Directly After Applied
I have created a sphere game object and attached a rigidbody component to it as well as a C# script which is as follows:
using UnityEngine;
using System.Collections;
public class Control : MonoBehaviour {
Rigidbody rb;
void Start () {
rb = GetComponent<Rigidbody>();
rb.AddForce (new Vector3(50f,50f,50f));
rb.velocity = Vector3.zero;
rb.angularVelocity = Vector3.zero;
}
}
As you can see what it does, is adding force to the rigidbody using the AddForce method and then setting its velocity to zero.
However the sphere still maintains the force given, and so i want to be able to remove that force, how would i do that?
thanks in advance
(sorry for bad english)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613200135im_/https://answers.unity.com/themes/thub/images/avi.jpg)