seriously disabled Posted July 4, 2009 Posted July 4, 2009 Hi, I have another question. How do I introduce game physics into the program code?
Shadow Posted July 4, 2009 Posted July 4, 2009 You'll have to be more specific. The answer to your question is "via keyboard"... First you have to know which physical law you want to implement. Then, depending on the program, you implement it. For example, here is the pseudocode of a way to introduce gravitation movement in a number of objects: For every Object 0 to x For every object ahead of CurObject //In the list of objects Acceleration = NewtGravConst * NxtObject.mass / DistanceBetween[CurObject, NxtObject[math]]^2[/math] Velocity = Acceleration * DeltaTime Displacement = Velocity * DeltaTime EndLoop EndLoop
seriously disabled Posted July 11, 2009 Author Posted July 11, 2009 Ok, thanks for the info. But I have another question: If I created a three-dimensional object with photoshop, how do I add that object or image into the program code?
Shadow Posted July 11, 2009 Posted July 11, 2009 I can't tell you that, but I can tell you that Photoshop is not a modeling program... 3DSMax, or Maya are.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now