Project

General

Profile

Feature #2536

Provide a way to determine what material an object (or just PC/NPC) collides with

Added by Who Knows over 2 years ago. Updated 20 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Physics
Target version:
Start date:
05/11/2015
% Done:

0%

Severity:
Normal

Description

It would be nice to have the information if the PC stands on solid ground like stone or on grass or wood or in water (like a pool or a lake).
This is nice for influencing the effect of fire, current, wind or to determine if a seed can be planted. Another use would be ground-based falling damage. So falling on plants or soil would be less harmful than falling on metal.

<object>->get_collision_material

related:
<object>->get_collision_speed with the result in m/s
or
<object>->get_collision_force with the result in Newton

Maybe it's already possible to give models a material tag?

History

#1 Updated by scrawl . over 2 years ago

  • Target version set to openmw-future

#2 Updated by scrawl . 20 days ago

  • Subject changed from OpenMW: please provide a way to determine what material an object (or just PC/NPC) collides with to Provide a way to determine what material an object (or just PC/NPC) collides with
  • Category set to Physics

Also available in: Atom PDF