Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Knowledge Base
  3. 3D Blocks
  4. Enable Physics for 3D Scenes

Enable Physics for 3D Scenes

Scheduled Pinned Locked Moved 3D Blocks
1 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

    Introduction

    For 3D projects, you can enable physics in the entire scene, which allows you to use a physics engine to control objects and simulate real-world objects.

     

    Enable Physics

    To enable physics in a 3D scene, you need to initialize that scene first, then run the following block:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/17d8f2f3-c0da-49e2-b351-13841e19c849.png" width="500" style="">

     
    This block takes one input parameter “gravity”. If it is negative, the objects will be pulled down toward the negative Z direction. If it is positive, then objects will rise toward the positive Z direction. By default, the gravity is set to -100.

    Note that gravity is not the same as speed. If an object’s speed is 100, it will keep moving at the same speed. However, if the gravity is 100, then the object will move faster and faster.

     
     

    Notes

    Note that after enabling physics for a scene, you will not see any difference right away. You will still need to enable physics for individual objects in the scene to see the effect of physics simulation. By default, no object has physics enabled for them.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode