# Calculating Normal Force

This topic is 4669 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I'm trying to create a function that calculates the normal force of an object, and was wondering if my code is right or not?

Private Sub Physics_Normal_Force(m As Single, g As Single, Angle As Single, N As Point_2D)

N.X = m * g * Cos(Angle * PI / 180)
N.Y = m * g * Sin(Angle * PI / 180)

End Sub



##### Share on other sites
From what you posted it seems correct. But without any other context there's no way for us to tell for sure [smile]

##### Share on other sites
Well I wasn't too sure if it was correct cause if the angle is 0, then N.Y = 0 and N.X was not 0, which didn't make any sense. If I reversed the cos and sin's around, then it sorta would make sense.

##### Share on other sites
Fx = mg * sin ( angle )
Fy = mg * cos ( angle )
Rn= Fy
Ft = Cf * Rn = Cf * Fy = Cf * mg * cos ( angle )
Fx -Ft = m * a
a= ( Fx-Ft ) / m
s= 0.5 *a *t*t +v0 *t + s0
ds/dt = v = a* t+ v0
ds2/dt2 = dv/dt = a

##### Share on other sites
Quote:
 Original post by Jacob RomanWell I wasn't too sure if it was correct cause if the angle is 0, then N.Y = 0 and N.X was not 0, which didn't make any sense. If I reversed the cos and sin's around, then it sorta would make sense.

In that case it depends what you consider 0°. If 0° is when the ground is facing up and N.X is to the right then your results would seem weird. However let's say you consider a flat ground 90°, or in other words use the direction of the normal as the orientation of the ground. Then the results would make more sense. Since sine and cosine are 90° out-of-phase, it explains why you would think of switching them.

##### Share on other sites
Ohhhhh, yeah ok. I think that's why now. Thanks. ;)

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5

• 9
• 14
• 9
• 9
• 9
• ### Forum Statistics

• Total Topics
632921
• Total Posts
3009211
• ### Who's Online (See full list)

There are no registered users currently online

×