[Unity] Rigidbody rigid body

introduce

Rigidbody is the API of rigid body components. By calling related methods, objects have physical characteristics.

insert image description here

Rigid body properties

  • Mass 默认值1quality
  • Drag 默认值0air resistance
  • Angular Drag 默认值0.05Affects the amount of air resistance the object has when rotating it according to the torque.
  • Use Gravity 默认值truewhether to use gravity
  • IsKinemticIf this option is enabled, the object will not be driven by the physics engine, it can only 变换 (Transform)be manipulated by the .
  • InterpalateOnly try one of the provided options if you see jerks in rigid body motion
    • None 默认值Defaults
    • InterpalateSmooth transitions based on the previous frame's transition
    • ExtrapalateSmooth the transform based on the estimated transform for the next frame
  • Collision DetectionCollision Detection Algorithm
    • Discrete 默认值Use discrete collision detection for all other colliders in the scene.
    • Continuous
    • Continuous DynamicFor all other colliders, discrete collision detection is used. for fast moving objects
    • Continuous SpeculativeThis method is usually less expensive than sweep-based continuous collision detection
  • ConstrainsLimit movement and rotation of objects on some axes
    • Freeze Positionrestricted movement
    • Freeze Rotationlimited rotation
  • Infodetails

Guess you like

Origin blog.csdn.net/ainklg/article/details/129779774