Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ public void setSpatial(Spatial spatial) {
setPhysicsRotation(getSpatialRotation());
}

/**
* @return returns the spatial the control is added to, or null if the control is not attached to a spatial yet.
*/
public Spatial getSpatial(){
return this.spatial;
}

/**
* Enable or disable this control.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ public void setSpatial(Spatial spatial) {
setPhysicsLocation(getSpatialTranslation());
}

/**
* @return returns the spatial the control is added to, or null if the control is not attached to a spatial yet.
*/
public Spatial getSpatial(){
return this.spatial;
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
if (space != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ public void setSpatial(Spatial spatial) {
setPhysicsRotation(getSpatialRotation());
}

/**
* @return returns the spatial the control is added to, or null if the control is not attached to a spatial yet.
*/
public Spatial getSpatial(){
return this.spatial;
}

/**
* Enable or disable this control.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ public void setSpatial(Spatial spatial) {
setPhysicsRotation(getSpatialRotation());
}

/**
* @return returns the spatial the control is added to, or null if the control is not attached to a spatial yet.
*/
public Spatial getSpatial(){
return this.spatial;
}

/**
* Set the collision shape based on the controlled spatial and its
* descendents.
Expand Down