Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7925695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:24:48+00:00 2026-06-03T18:24:48+00:00

what tells us that this is in second ? (is M_PI*2 equal to 1

  • 0

what tells us that this is in “second” ? (is M_PI*2 equal to 1 second? how?)

float32 maxRevsPerSecond = 7.0;
float32 accelerationFraction = acceleration.y*6;
float32 motorSpeed = (M_PI*2) * maxRevsPerSecond * accelerationFraction;

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:24:51+00:00Added an answer on June 3, 2026 at 6:24 pm

    M_PI is the system’s definiton for the value of π (3.14159…) Thefefore, motorSpeed is an angular (rotational) value in radians per second.


    The above initial answer was only based on the variable names in the example code. Doing some net searching, I see this code is part of an example in the book Learning Cocos2D. In the section Making the Cart Move with the Accelerometer the book says:

    Since you set up revolute joints for the cart wheels, rotating the wheels is easy. Revolute joints have a built-in “motor” that defines how quickly the wheels rotate in radians per second.

    …

    Think of a motor as an automatic mechanism that turns the wheels based on the motorSpeed. motorSpeed is in radians per second,…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Introspection tells me that django fields have a hidden_widget attribute. Maybe its not this
Can anyone tell me in simple words that what this L value is and
Can someone tell me why this unit test that checks for exceptions fails? Obviously
Instruments tells that there are misaligned images which are animated by core animation. What
The documentation of ARToolKit tells that -- Users can now choose between rear (main)
A colleague tells me that there is no way to bulk insert UTF-8 encoded
git status tells me that my branch and the one I started from on
I have a website that tells the output is UTF-8, but I never make
Is there a function that tells what class you are extending? Like function_exists? I
Is there a setting that tells Excel to stop treating blanks as zeros? I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.