# SitObjectInfo

Kind: Struct · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-struct" data-pagefind-filter="kind:Struct">Struct</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
</div>

<span id="T:Sansar.Simulation.SitObjectInfo"></span>

Information about if an agent is sitting on this SitObjectInfo.

```csharp
public struct SitObjectInfo
```

## Members at a glance

| Kind | Members |
|---|---|
| **Fields** | [ExitForward](#exitforward) · [ExitPosition](#exitposition) · [IsOccupied](#isoccupied) · [LocalForward](#localforward) · [LocalPosition](#localposition) · [SessionId](#sessionid) |

## Fields

### ExitForward

<div class="api-card">
<span id="F:Sansar.Simulation.SitObjectInfo.ExitForward"></span>

```csharp signature
public Sansar.Vector ExitForward
```

The local space forward direction of the exit point from this sit point.

</div>

### ExitPosition

<div class="api-card">
<span id="F:Sansar.Simulation.SitObjectInfo.ExitPosition"></span>

```csharp signature
public Sansar.Vector ExitPosition
```

The local space exit point where an agent will be when they stand up from this sit point.

</div>

### IsOccupied

<div class="api-card">
<span id="F:Sansar.Simulation.SitObjectInfo.IsOccupied"></span>

```csharp signature
public bool IsOccupied
```

Is an agent sitting on this object

</div>

### LocalForward

<div class="api-card">
<span id="F:Sansar.Simulation.SitObjectInfo.LocalForward"></span>

```csharp signature
public Sansar.Vector LocalForward
```

The local space forward direction for the object sit point.

</div>

### LocalPosition

<div class="api-card">
<span id="F:Sansar.Simulation.SitObjectInfo.LocalPosition"></span>

```csharp signature
public Sansar.Vector LocalPosition
```

The local space point on the object where an agent would sit.

</div>

### SessionId

<div class="api-card">
<span id="F:Sansar.Simulation.SitObjectInfo.SessionId"></span>

```csharp signature
public Sansar.Script.SessionId SessionId
```

The SessionId of the agent that is sitting on the object.

</div>


## Used in examples

- [ScriptLibrary/Scene/SitStand.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Scene/SitStand.cs)

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>