Deprecated: Required parameter $query follows optional parameter $post in /var/www/html/wp-content/plugins/elementor-extras/modules/breadcrumbs/widgets/breadcrumbs.php on line 1215
3D and XR Studio Physics - Blocks, Python Functions, Projects | PictoBlox Extension
[PictoBloxExtension]

3D and XR Studio Physics

Physics
Extension Description
Move objects in a straight line or towards each other. For more control, adjust speed, rotation, apply pushes, and fine-tune gravity effects.

Introduction

Physics offers comprehensive control over the physical properties and behavior of objects and the world itself. Here’s a breakdown of each aspect:

1. World Physics Properties:
– World Type: Users can define the type of physics world, such as 2D or 3D, to match the dimensions of their environment.
– Gravity: Users have the ability to set the direction and magnitude of gravity within the physics world, influencing the behavior of objects subjected to gravitational forces.

2. Object Body Properties:
– Body Type: Users can specify the body type of objects, such as static, dynamic, or kinematic, determining how they interact with the physics simulation.
– Mass: Users can set the mass of objects, influencing their response to external forces and collisions.
– Friction: Users can adjust the friction coefficient of objects, controlling the resistance to motion when in contact with other surfaces.
– Damping: Users can define damping properties to simulate air resistance or other dissipative forces, affecting the object’s motion over time.
– Pressure: Users have the option to specify pressure properties for objects, influencing their deformation or buoyancy behavior in fluid simulations.

3. Motion Control:

Simple Motion:
1. Push Object Towards Another Object: Users can make one object move towards another with a specified speed, useful for creating collisions or interactions.
2. Move Forward/Backward: Users can move objects in a straight line, either forward or backward, with a set speed.

Advanced Motion:
1. Body Velocity: Users can set the speed and direction of objects’ movement.
2. Body Angular Velocity: Users control how fast objects rotate.
3. Apply Impulse: Users can give objects a sudden push, simulating impacts or abrupt movements.
4. Apply Force: Users can continuously push objects, affecting their movement over time.
5. Gravity: Users can adjust how much gravity affects objects, controlling their falling speed or direction.

These motion options allow users to create a variety of dynamic effects in their scenes, from basic movements to complex physics simulations.

Read More

PictoBlox Blocks

The block enables or disables the automatic display of the box on the QR code on the stage. This is useful when you want to see if the detection happens or not.
The function returns the temperature, minimum, and maximum temperature of the location.
The block pauses its script for the specified amount of beats, which can be a fraction.
The block gets values of the video, either motion (on a scale of 1 to 100) or direction (which way the detected motion is going, measured on the same plane as sprite direction), on either the Stage or the current sprite. If there is no video, the block will return -1. It calculates the values based on “optical flow”.
The block removes all marks made by the pen or stamping. It is the only pen block that the Stage can use.
The block reads the digital value of the sensors connected to the specified pin. The block returns True or False.
The block moves the Quarky robot in the specified direction for the specified time. The direction can be “FORWARD”, “BACKWARD”, “LEFT”, and “RIGHT”.
The block returns the state of the specified push button. If the button is pressed it returns True or else False.
The block plays the specified audio on the Quarky speaker. The block has a callback, so other blocks will be executed after the audio is played.
The turn () video on stage with () % transparency block controls the control the camera feed on the stage.
This block should be included with the Mars Rover for the first time as it calibrates the angles of all five servo motors and saves the angles in the memory of Quarky.
Once the input is given the value using the set () as () block, the analyse numbers block runs the inputs through the ML model and stores the output values in PictoBlox.
The block checks if the currently recognized class from the recognition window is the selected class or not.
The block sets the gravity for the physics engine in the defined x and y directions.
The block activates the sprite under this hat block when the sensor connected to the selected pin becomes HIGH (or 3.3V). The block is used for digital sensors like PIR Sensor, Flame Sensor, or the IR Sensor.
The block sets the servo motor connected to the specified servo pin of the Quarky Expansion board to the specified angle. The expansion board can control 8 servos at a time.
The block set up the API connection between the PictoBlox and the Adafruit server with the specified username and AIO key. 
The block sets the defined value 1, 2, or 3 in the body of the IFTTT request to the specified value.
This block should be included every time you work with the quadruped as this block calibrates the angles of the servo motors and saves it in the memory of Quarky. Due to some mechanical assembly errors, there may be some misalignment of the servos which can be handled with this block.
The block is used for creating the data row for the CSV file. The data number specifies the column for the data value.
This block calibrates the angles of the hip and foot servo motors and saves it in the memory of Quarky. Due to some mechanical assembly errors, there may be some misalignment of the servos which can be handled with this block.
The block makes the robot move in the specified direction at the specified speed.
The maximum length in ChatGPT is the maximum number of words that can be used in a single message. This is usually set by the users and can vary depending on the use case. It is usually set to prevent messages from becoming too long and cluttered.
This block reads the value from the analog pins of boards such as Arduino Uno, Arduino Mega, or Arduino Nano. It returns the 10-bit resolution of the analog pin, with a range of 0 – 1023, which is mapped to the voltage of the pin (usually 0 – 5V). For example, if the value received is 512, then the voltage is roughly 2.5V.
This block of code is setting up an I2C LCD module by initializing it with an address code.
This block is a calibration process for the robotic arm. It is used to measure and save the offset angle of the servo motors in the memory of the Quarky.
Starts the script when you click on the sprite.
Moves the sprite a specified number of steps backward.
Makes the sprite appear as if fully visible.
Runs the blocks inside a specified of times.
All articles loaded
No more articles to load
Table of Contents