Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by alexthewolfe · Oct 26, 2015 at 11:56 PM · 2dplatformergenerationmeshes2.5d

Best way to generate meshes based on algebraic functions?

Hello,

I am a high school math teacher at a digital arts school. In about a week, our students are about to begin learning about functions and the game design teacher and I have brainstormed a project around writing and transforming functions and using them to design a 2D/2.5D platformer, but I need some help getting the shapes or meshes of these functions into Unity.

What I want to do:

  1. Let students generate level pieces based on a linear function (f(x)=3x+2), quadratic function (f(x)=x2), or other functions that a player character could walk on the graph of.

  2. OR... If that is not possible, to create meshes in the shape of the functions for the students to then transform within Unity to create "function-inspired" levels instead of directly using the functions in Unity.

  3. OR... Students graph their functions on the computer, save the image, and then use Photoshop to create layers over it with the art for their level and import those as sprites. (But it just doesn't sound as impressive or mathematical as having Unity create or alter the pieces in-engine.)

Number 1 is my dream, 2 seems more doable, and 3 is my fallback option. I am at a loss on how to create parabola-shaped or other more complicated objects in Unity. Is this doable in Unity or is this a task for 3D modeling software?

What I need help with: If anyone could give me tips, resources, or just help me know where to look in the Unity documentation to accomplish this, it would be greatly appreciated. I have a minor in computer science and some programming experience. I am new to Unity and 3D modeling but I am willing to learn, I just need a little direction.

Example: Here is a piecewise graph incorporating some functions students might use to design their levels. Imagine a player character traversing terrain like this: https://www.desmos.com/calculator/mwmq4jacxm

Thank you.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Compatible collision constraint methods 0 Answers

Unity2D Player Jump Heights Inconsistent,Unity2D Inconsistent Player Jump Heights 0 Answers

Enemy jump in unity 2d 0 Answers

OnTriggerEnter2D not working, making a turret 1 Answer

2.5D Projectile Help 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges