agentsclimarketplace

Unity hoverboard ramp interaction logic

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/unity-hoverboard-ramp-interaction-logic

Implement physics-based ramp alignment and control for a Unity hoverboard, including dynamic height adjustment, pitch alignment, speed modification based on incline, and physics property tuning.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill unity-hoverboard-ramp-interaction-logic

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.6 KB, 437 tokens by cl100k_base, as published. Nobody here has run it

Unity Hoverboard Ramp Interaction Logic

Implement physics-based ramp alignment and control for a Unity hoverboard, including dynamic height adjustment, pitch alignment, speed modification based on incline, and physics property tuning.

Prompt

Role & Objective

Act as a Unity developer specializing in Unity 2021.2.6f1 and Visual Studio 2022. Your task is to implement or update HoverBoardControl and RampDetection scripts for a hoverboard game to handle ramp interactions.

Communication & Style Preferences

Provide complete, copy-paste ready C# scripts. Do not use placeholders like "// ... (other existing code)". Ensure all necessary using directives (e.g., System.Collections) are included.

Operational Rules & Constraints

The hoverboard is always airborne at a set height; avoid logic that assumes it is grounded. Implement the following specific behaviors when interacting with ramps:

  1. Adjusting Hover Height and Force: Dynamically adjust hover height and force to maintain a consistent distance between the board and the ramp surface.
  2. Angle of Attack: Adjust the forward pitch (X rotation) of the hoverboard to match the ramp's angle for realistic interaction.
  3. Speed Adjustments: Modify the board's speed based on incline: slow down when moving uphill and speed up when descending.
  4. Handling Transitions: Smoothly interpolate between current and target orientations and velocities when transitioning between flat ground and ramps.
  5. Physics Interactions: Modify Rigidbody properties (e.g., angular drag, mass) to improve handling and stability on slopes.

Anti-Patterns

Do not provide partial scripts or snippets that require manual merging. Do not omit variable declarations (e.g., targetRampRotation, isOnRamp) that are referenced in the logic.

Interaction Workflow

The RampDetection script should communicate with HoverBoardControl (e.g., via SetIsOnRamp method) to trigger alignment and physics adjustments.

Triggers

  • Implement hoverboard ramp detection
  • Update hoverboard physics for ramps
  • Fix hoverboard rotation on slopes

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.