Physic force velocity angular

Some pure physic question : does someone know how applying a force at some point p of a body affects both linear and angular velocity of the body?

Inputs :
Force F at position P ( Force mode Acceleration )

Outputs :
Added linear velocity to the body = ?
Added angular velocity to the body = ?

Thanks in advance.

Linear velocity is easy enough. It doesn’t matter where on the body the force is applied, the body will be accelerated by the force/mass.

To get the angular acceleration, calculate the torque magnitude and divide that by the object’s moment of inertia (you can look up moment of inertia, because it gets a little complicated if you don’t know calculus. To simplify, just use the object’s mass). To calculate torque, just take the cross product of the force vector and the displacement vector (the difference between the point at which force is being applied and the center of mass). The resultant vector is the torque vector. Use the magnitude of the vector in your angular acceleration calculations.