Hology
Hology 文檔
Hology 文檔
  • 👋歡迎來到Hology文檔
  • Getting started
    • Hology Engine簡介
    • 第一步指南
    • 編輯器基礎指南
      • 在場景中飛行
      • 放置物件
      • 選擇物件
      • 變換
      • 分組物件
      • 複製
    • 入門遊戲模板 - 第三人稱射擊遊戲
  • Tutorials
    • 滾球 - 遊戲玩法編程
    • 角色動畫程式設計
    • Character AI behavior
  • Release
    • 遊戲發行
      • Discord Activities
      • 臉書即時遊戲
      • 上傳至 Itch.io
      • 使用 GitHub Pages
      • 發布到Steam
      • iOS 和 Android
  • Assets
    • 3D模型
      • 客製化碰撞形狀
      • 材質自訂分配
    • 材質
    • 紋理
    • 預製體
  • Gameplay
    • 演員(Actors)
      • 創建演員類
      • 演員參數
      • Actor 元件
      • Actor 的生命週期
      • 生成 Actors
      • 移動 Actors
    • 服務
      • 載入資產
    • Player input
    • Collision detection
    • Physics
      • Physics body types
      • Applying forces
      • Ray casting
    • Trigger volumes
    • Character movement
    • Pointer events
    • Animation
      • Animation system
      • Character Animation
      • Animation State Machine
    • Sound
      • Audio parameter
    • 世界
    • Navigation
  • Shaders
    • 著色器介紹
    • Creating shaders
    • 著色器參數
    • Typescript shaders
      • Types
      • Math functions
      • Attributes
      • Varying
      • Uniforms
      • Textures
      • Arrays
      • Select
      • Lighting
    • Painted materials
    • Water shader tutorial
  • Level design
    • 地形雕刻
    • 地形繪製
    • Grass
  • User Interfaces
    • 創建用戶界面UI
    • 使用 React
    • VR
  • Visual Effects
    • 視覺效果簡介
    • 視覺特效資產
  • Integrations
    • Arcweave
由 GitBook 提供支持
在本页
  1. Gameplay
  2. Physics

Applying forces

For actors that are added to the physics system with a dynamic physics body type, you can apply force in various ways to make it move.

  • applyTorque - Applies a continuous rotational force (torque) to an object. This method is used to change the angular velocity of the object over time. The torque is specified in the global coordinate system.

    • torque: A vector representing the torque to be applied. This vector determines the direction and magnitude of the rotational force.

  • applyTorqueImpulse - Applies an instantaneous torque impulse to an object. This method is used to change the angular velocity of the object immediately. The impulse is specified in the global coordinate system.

    • torqueImpulse: A vector representing the torque impulse to be applied. This vector determines the direction and magnitude of the instantaneous rotational force.

  • applyForce - Applies a continuous force to an object. This method is used to change the linear velocity of the object over time. The force is specified in the global coordinate system and can be applied at a specific point on the object.

    • force: A vector representing the force to be applied. This vector determines the direction and magnitude of the force.

  • applyImpulse - Applies an instantaneous force impulse to an object. This method is used to change the linear velocity of the object immediately. The impulse is specified in the global coordinate system and can be applied at a specific point on the object.

    • force: A vector representing the force impulse to be applied. This vector determines the direction and magnitude of the instantaneous force.

  • applyLocalForce - Applies a continuous force to an object. This method is used to change the linear velocity of the object over time.

    • force: A vector representing the force to be applied in the object's local coordinate system.

    • localPoint: A vector representing the point of application of the force in the global coordinate system.

  • applyLocalImpulse - Applies an instantaneous force impulse to an object. This method is used to change the linear velocity of the object immediately.

    • force: A vector representing the force impulse to be applied in the object's local coordinate system.

    • localPoint : A vector representing the point of application of the impulse in the object's global coordinate system.

上一页Physics body types下一页Ray casting