Hology
Hology
Hology
  • 👋Welcome to Hology Docs
  • Getting started
    • Introduction to Hology
    • The first steps
    • Editor basics
      • Flying in scenes
      • Placing objects
      • Select objects
      • Transform
      • Grouping objects
      • Duplicate
    • Starter project - Third person shooter
  • Tutorials
    • Rolling ball - Gameplay programming
    • Character movement programming
    • Character AI behavior
  • Release
    • Distribution
      • Discord Activities
      • Facebook Instant Games
      • Upload to Itch.io
      • Host with GitHub Pages
      • Publishing to Steam
      • iOS and Android
  • Assets
    • 3D Models
      • Custom collision shapes
      • Material slots
    • Materials
    • Textures
    • Prefabs
  • Gameplay
    • Actors
      • Creating actor classes
      • Actor parameters
      • Actor components
      • Actor lifecycle
      • Spawning actors
      • Moving actors
    • Services
      • Load assets
    • 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
    • World
    • Navigation
  • Shaders
    • Introduction to shaders
    • Creating shaders
    • Shader parameters
    • Typescript shaders
      • Types
      • Math functions
      • Attributes
      • Varying
      • Uniforms
      • Textures
      • Arrays
      • Select
      • Lighting
    • Painted materials
    • Water shader tutorial
  • Level design
    • Landscape sculpting
    • Landscape painting
    • Grass
  • User Interfaces
    • Creating user interfaces
    • Using React
    • VR
  • Visual Effects
    • Introduction to VFX
    • VFX Assets
  • Integrations
    • Arcweave
Powered by GitBook
On this page
  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.

PreviousPhysics body typesNextRay casting

Last updated 11 months ago