3D Workspace
Home
Assets
Affiliate Program
Sign up/Log in
?
Upgrade
DCC Bridge
3D Creation Made Simple
Text & Image to 3D Model in seconds
One-Click Texturing & Smart Detail Editing
Free Credits Monthly
Start Free
Anonymous1772201611
02-27 14:26
Model Name
football player 3d model
Tags
character
rendering
realistic
Input
Prompt
using UnityEngine; public class PlayerMovement : MonoBehaviour { public float moveSpeed = 5f; public float jumpForce = 5f; private Rigidbody2D rb; void Start() { rb = GetComponent<Rigidbody2D>(); } void Update() { // Move Left/Right float move = Input.GetAxis("Horizontal"); rb.velocity = new Vector2(move * moveSpeed, rb.velocity.y); // Jump if (Input.GetKeyDown(KeyCode.Space)) // later link to button { rb.velocity = new Vector2(rb.velocity.x, jumpForce); } } }
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!