Show / Hide Table of Contents

Class MyProjectileInfo

Implements read-only info about existing projectile

Inheritance
System.Object
MyProjectileInfo
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public sealed class MyProjectileInfo : ValueType

Constructors

MyProjectileInfo(Int32, Vector3D, Vector3D, Vector3D, Vector3D, Single, MyDefinitionBase, MyDefinitionBase, IMyEntity, IMyEntity, UInt64)

Implements projectile info constructor

Declaration
public MyProjectileInfo(int index, Vector3D position, Vector3D origin, Vector3D velocity, Vector3D cachedGravity, float maxTrajectory, MyDefinitionBase projectileAmmoDefinition, MyDefinitionBase weaponDefinition, IMyEntity ownerEntity, IMyEntity ownerEntityAbsolute, ulong owningPlayer)
Parameters
Type Name Description
System.Int32 index

index

Vector3D position

position

Vector3D origin

origin

Vector3D velocity

velocity

Vector3D cachedGravity

gravity vector

System.Single maxTrajectory

max trajectory

MyDefinitionBase projectileAmmoDefinition

projectile ammo definition

MyDefinitionBase weaponDefinition

weapon definition

IMyEntity ownerEntity

owner entity

IMyEntity ownerEntityAbsolute

top owner in case of grid hierarchy

System.UInt64 owningPlayer

player owner

Properties

CachedGravity

Cached gravity, in position of bullet. (May be inaccurate)

Declaration
public Vector3D CachedGravity { get; }
Property Value
Type Description
Vector3D

Index

Index of position in array. May be changed

Declaration
public int Index { get; }
Property Value
Type Description
System.Int32

MaxTrajectory

Max travel distance

Declaration
public float MaxTrajectory { get; }
Property Value
Type Description
System.Single

Origin

Shoot position (World coordinates)

Declaration
public Vector3D Origin { get; }
Property Value
Type Description
Vector3D

OwnerEntity

Rifle, block ...

Declaration
public IMyEntity OwnerEntity { get; }
Property Value
Type Description
IMyEntity

OwnerEntityAbsolute

character, main ship cockpit,

Declaration
public IMyEntity OwnerEntityAbsolute { get; }
Property Value
Type Description
IMyEntity

OwningPlayer

Player SteamId or zero

Declaration
public ulong OwningPlayer { get; }
Property Value
Type Description
System.UInt64

Position

World position

Declaration
public Vector3D Position { get; }
Property Value
Type Description
Vector3D

ProjectileAmmoDefinition

Gets Projectile Ammo Definition of type MyProjectileAmmoDefinition

Declaration
public MyDefinitionBase ProjectileAmmoDefinition { get; }
Property Value
Type Description
MyDefinitionBase

Velocity

Current velocity

Declaration
public Vector3D Velocity { get; }
Property Value
Type Description
Vector3D

WeaponDefinition

Gets Weapon Definition of type MyWeaponDefinition

Declaration
public MyDefinitionBase WeaponDefinition { get; }
Property Value
Type Description
MyDefinitionBase
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾