Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.MyMath.ForwardVectorProjection

Malware edited this page Dec 13, 2025 · 15 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

IndexNamespace IndexMyMath

Summary

public static Vector3 ForwardVectorProjection(Vector3 forwardVector, Vector3 projectedVector)

This projection results to initial velocity of non-engine objects, which parents move in some velocity We want to add only forward speed of the parent to the forward direction of the object, and if parent is going backward, no speed is added.

Returns

Vector3

Parameters

Clone this wiki locally