Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsBody.BatchTransform

A batch item used to get/set the pose of a PhysicsBody.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsBody.BatchTransform

Constructors

Constructor

Description

BatchTransform(Unity.U2D.Physics.PhysicsBody)Create a default batch transform, assigning the PhysicsBody.

Properties

Property

Description

physicsBodyThe PhysicsBody to write to.
positionThe position of the body in the world. _position.
rotationThe rotation of the body. _rotation.
transformThe full transform of the body composed of position and rotation. _transform.